24.08
|
Go to the documentation of this file.
12 class ScopedTensorHandle;
19 std::shared_ptr<ConstTensorHandle>
m_Mean;
23 std::shared_ptr<ConstTensorHandle>
m_Beta;
25 std::shared_ptr<ConstTensorHandle>
m_Gamma;
A BatchNormalizationDescriptor for the BatchNormalizationLayer.
std::shared_ptr< ConstTensorHandle > m_Mean
A unique pointer to store Mean values.
This layer represents a batch normalization operation.
void ExecuteStrategy(IStrategy &strategy) const override
Apply a visitor to this layer.
std::vector< std::reference_wrapper< const std::shared_ptr< ConstTensorHandle > >> ImmutableConstantTensors
std::shared_ptr< ConstTensorHandle > m_Gamma
A unique pointer to store Gamma values.
std::shared_ptr< ConstTensorHandle > m_Variance
A unique pointer to store Variance values.
ImmutableConstantTensors GetConstantTensorsByRef() const override
Retrieve the handles to the constant values stored by the layer.
virtual std::unique_ptr< IWorkload > CreateWorkload(const IWorkloadFactory &factory) const override
Makes a workload for the BatchNormalization type.
BatchNormalizationLayer * Clone(Graph &graph) const override
Creates a dynamically-allocated copy of this layer.
std::shared_ptr< ConstTensorHandle > m_Beta
A unique pointer to store Beta values.
~BatchNormalizationLayer()=default
Default destructor.
BatchNormalizationLayer(const BatchNormalizationDescriptor ¶m, const char *name)
Constructor to create a BatchNormalizationLayer.
Copyright (c) 2021 ARM Limited and Contributors.
void ValidateTensorShapesFromInputs() override
Check if the input tensor shape(s) will lead to a valid configuration of BatchNormalizationLayer.