| Modifier and Type | Method and Description |
|---|---|
ai.djl.nn.Block |
build()
Builds a
ResNetV1 block. |
ResNetV1.Builder |
optBatchNormMomentum(float batchNormMomentum)
Sets the momentum of batchNorm layer.
|
ResNetV1.Builder |
setImageShape(ai.djl.ndarray.types.Shape imageShape)
Sets the shape of the image.
|
ResNetV1.Builder |
setNumLayers(int numLayers)
Sets the number of layers in the network.
|
ResNetV1.Builder |
setOutSize(long outSize)
Sets the size of the output.
|
public ResNetV1.Builder setNumLayers(int numLayers)
numLayers - the number of layersBuilderpublic ResNetV1.Builder setOutSize(long outSize)
outSize - the output sizeBuilderpublic ResNetV1.Builder optBatchNormMomentum(float batchNormMomentum)
batchNormMomentum - the momentumBuilderpublic ResNetV1.Builder setImageShape(ai.djl.ndarray.types.Shape imageShape)
imageShape - the shape of the imageBuilder