Class LeNet.Builder
- java.lang.Object
-
- ai.djl.basicmodelzoo.cv.classification.LeNet.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ai.djl.nn.Block
build()
Builds aLeNet
block.LeNet.Builder
setNumChannels(int[] numChannels)
Sets the number of channels for the LeNet blocks.LeNet.Builder
setOutSize(long outSize)
Sets the size of the output.
-
-
-
Method Detail
-
setNumChannels
public LeNet.Builder setNumChannels(int[] numChannels)
Sets the number of channels for the LeNet blocks.- Parameters:
numChannels
- the number of channels for every LeNet block.- Returns:
- this
Builder
-
setOutSize
public LeNet.Builder setOutSize(long outSize)
Sets the size of the output.- Parameters:
outSize
- the output size- Returns:
- this
Builder
-
-