Add Depthwise Convolution is Docs

This commit is contained in:
Avik Pal 2018-06-09 14:19:47 +05:30
parent b59da95786
commit 6b294736f9
2 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,21 @@
# Additional Convolution Models
## Depthwise Convolutions
Using Depthwise Convolutions is pretty straightforword and much similar
to the usage of normal Convolutions. So simply we can swap in a
Depthwise Convolution in place of a Convolution.
Lets say we have to define a simple convolution layer like
```julia
m = Conv((3, 3), 3=>64, pad = (1, 1))
```
The alternative to this using a Depthwise Convolution would be
```julia
m = Chain(DepthwiseConv((3, 3), 3=>2, pad = (1, 1)),
Conv((1, 1), 6=>64))
```
Incase the second argument to `DepthwiseConv` is an `Integer` instead of a
`Pair` the channel multiplier is taken to be 1.

View File

@ -8,6 +8,12 @@ Dense
Conv Conv
``` ```
## Additional Convolution Layer
```@docs
DepthwiseConv
```
## Recurrent Layers ## Recurrent Layers
Much like the core layers above, but can be used to process sequence data (as well as other kinds of structured data). Much like the core layers above, but can be used to process sequence data (as well as other kinds of structured data).