modules
Building blocks for NN models.
kelp.nn.models.modules.DepthWiseConv2d
Bases: Conv2d
Depth-wise convolution operation
Source code in kelp/nn/models/modules.py
37 38 39 40 41 |
|
kelp.nn.models.modules.PointWiseConv2d
Bases: Conv2d
Point-wise (1x1) convolution operation
Source code in kelp/nn/models/modules.py
44 45 46 47 48 |
|
kelp.nn.models.modules.PreActivatedConv2dReLU
Bases: Sequential
Pre-activated 2D convolution, as proposed in https://arxiv.org/pdf/1603.05027.pdf. Feature maps are processed by a normalization layer, followed by a ReLU activation and a 3x3 convolution.
Source code in kelp/nn/models/modules.py
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
|