Class NiN.Builder
- java.lang.Object
-
- ai.djl.basicmodelzoo.cv.classification.NiN.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ai.djl.nn.Block
build()
Builds aNiN
block.NiN.Builder
setDropOutRate(float dropOutRate)
Sets the dropout rate in the network.NiN.Builder
setNumChannels(int[] numChannels)
Sets the number of channels for the niN blocks.
-
-
-
Method Detail
-
setDropOutRate
public NiN.Builder setDropOutRate(float dropOutRate)
Sets the dropout rate in the network.- Parameters:
dropOutRate
- the dropout rate- Returns:
- this
Builder
-
setNumChannels
public NiN.Builder setNumChannels(int[] numChannels)
Sets the number of channels for the niN blocks.- Parameters:
numChannels
- the number of channels for every niN block.- Returns:
- this
Builder
-
-