Class LeNet.Builder
java.lang.Object
ai.djl.basicmodelzoo.cv.classification.LeNet.Builder
- Enclosing class:
- LeNet
The Builder to construct a
LeNet
object.-
Method Summary
Modifier and TypeMethodDescriptionai.djl.nn.Block
build()
Builds aLeNet
block.setNumChannels
(int[] numChannels) Sets the number of channels for the LeNet blocks.setOutSize
(long outSize) Sets the size of the output.
-
Method Details
-
setNumChannels
Sets the number of channels for the LeNet blocks.- Parameters:
numChannels
- the number of channels for every LeNet block.- Returns:
- this
Builder
-
setOutSize
Sets the size of the output.- Parameters:
outSize
- the output size- Returns:
- this
Builder
-
build
public ai.djl.nn.Block build()Builds aLeNet
block.- Returns:
- the
LeNet
block
-