Batch Norm2d
A training version of batch normalization provided for compatibility with existing code.
Constructors
BatchNorm2d
Link copied to clipboard
Functions
cpu
Link copied to clipboard
extract Tangent
Link copied to clipboard
open override fun extractTangent(output: DTensor, extractor: (DTensor, DTensor) -> DTensor): TrainableComponent.Companion.Tangent
Content copied to clipboard
get Single Input
Link copied to clipboard
Helper to check that the layer was called with a single input. Returns that input if successful, else errors.
gpu
Link copied to clipboard
load
Link copied to clipboard
store
Link copied to clipboard
training Step
Link copied to clipboard
open override fun trainingStep(optim: Optimizer<*>, tangent: Trainable.Tangent): BatchNormTraining
Content copied to clipboard
with Trainables
Link copied to clipboard
open override fun withTrainables(trainables: List<Trainable<*>>): BatchNormTraining
Content copied to clipboard
wrap
Link copied to clipboard
The wrap function should return the same static type it is declared on.