public final class NiN
extends java.lang.Object
The conventional convolutional layer uses linear filters followed by a nonlinear activation function to scan the input.
NiN model from the "Network In Network" http://arxiv.org/abs/1312.4400 paper.
| Modifier and Type | Class and Description |
|---|---|
static class |
NiN.Builder
The Builder to construct a
NiN object. |
| Modifier and Type | Method and Description |
|---|---|
static NiN.Builder |
builder()
Creates a builder to build a
NiN. |
static ai.djl.nn.Block |
niN(NiN.Builder builder)
The NiN block consists of one convolutional layer followed by two 1×1 convolutional layers
that act as per-pixel fully-connected layers with ReLU activations.
|
ai.djl.nn.SequentialBlock |
niNBlock(int numChannels,
ai.djl.ndarray.types.Shape kernelShape,
ai.djl.ndarray.types.Shape strideShape,
ai.djl.ndarray.types.Shape paddingShape)
Creates a constituent NiN block that becomes a part of the whole NiN model.
|
public static ai.djl.nn.Block niN(NiN.Builder builder)
builder - the NiN.Builder with the necessary arguments.public static NiN.Builder builder()
NiN.public ai.djl.nn.SequentialBlock niNBlock(int numChannels,
ai.djl.ndarray.types.Shape kernelShape,
ai.djl.ndarray.types.Shape strideShape,
ai.djl.ndarray.types.Shape paddingShape)
numChannels - the number of channels in a NiN block.kernelShape - kernel Shape in the 1st convolutional layer of a NiN block.strideShape - stride Shape in a NiN block.paddingShape - padding Shape in a NiN block.