Package ai.djl.nn.norm
Class GhostBatchNorm.Builder
- Enclosing class:
- GhostBatchNorm
The Builder to construct a
GhostBatchNorm.-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the newGhostBatchNorm.optVirtualBatchSize(int virtualBatchSize) Sets the size of virtual batches in which to use when sub-batching.self()Returns this {code Builder} object.Methods inherited from class ai.djl.nn.norm.BatchNorm.BaseBuilder
optAxis, optCenter, optEpsilon, optMomentum, optScale
-
Method Details
-
optVirtualBatchSize
Sets the size of virtual batches in which to use when sub-batching. Defaults to 128.- Parameters:
virtualBatchSize- the virtual batch size- Returns:
- this Builder
-
build
Builds the newGhostBatchNorm.- Specified by:
buildin classBatchNorm.BaseBuilder<GhostBatchNorm.Builder>- Returns:
- the new
GhostBatchNorm
-
self
Returns this {code Builder} object.- Specified by:
selfin classBatchNorm.BaseBuilder<GhostBatchNorm.Builder>- Returns:
- this
BaseBuilder
-