Relax! Flux is the ML library that doesn't make you tensor
Go to file
bors[bot] 9237cdaf5b
Merge #901
901: Add option for "Same" padding to conv and pooling layers r=dhairyagandhi96 a=DrChainsaw

Fixes #813 

This adds the possibility to set "pad=SamePad()" to automatically calculate the amount of padding to apply so that outputsize==inputsize (assuming stide == 1).

Comments on API more than welcome. I considered the following options:

* Call the type just Same and export it, but I was afraid to cause name collisions due to a too generic name
* Call the type Same and not export it
* Dispatch on type instead of instance (so that one can type pad=Same instead of pad=Same())
* Supply a method instead of a type, giving a similar API as above. 

Happy to change to any of the above or to anything else.

I don't think that same padding is common for pooling layers, but I added it just for the sake of consistency. It is a separate commit so it can easily be removed if not wanted.

Co-authored-by: DrChainsaw <Christian.kyril.skarby@gmail.com>
2020-04-25 04:39:18 +00:00
.github Merge pull request #1030 from JuliaTagBot/master 2020-02-19 21:47:31 +05:30
docs Update doctest version guard (1.2 -> 1.4) 2020-04-06 13:53:36 +02:00
paper use https instead of http for web links 2019-04-25 11:04:03 +00:00
src Fix merge conflicts 2020-04-24 21:56:26 +02:00
test Fix merge conflicts 2020-04-24 21:56:26 +02:00
.gitattributes Restore purity 2019-09-08 16:15:35 +01:00
.gitignore modernize documentation 2019-01-10 15:06:11 +01:00
.gitlab-ci.yml test on julia 1.3+ 2020-01-13 13:45:40 +05:30
.travis.yml update travis 2020-04-06 13:20:28 +02:00
CITATION.bib Create CITATION.bib 2019-05-04 18:49:19 -04:00
LICENSE.md Update LICENSE.md 2019-04-15 16:59:16 -04:00
Manifest.toml fix tests and new version 2020-04-06 09:26:38 +02:00
NEWS.md Change next version entry to 0.10.5 2020-04-24 22:07:57 +02:00
Project.toml update travis and bound julia version 2020-04-06 09:35:34 +02:00
README.md Update README.md 2019-12-19 09:44:17 -05:00
bors.toml bump version to 10.1 2020-01-13 13:41:25 +05:30

README.md

Build Status DOI

Flux is an elegant approach to machine learning. It's a 100% pure-Julia stack, and provides lightweight abstractions on top of Julia's native GPU and AD support. Flux makes the easy things easy while remaining fully hackable.

] add Flux

See the documentation or the model zoo for examples.

If you use Flux in your research, please cite our work.