38 BOOST_ASSERT(inferredShapes.size() == 1);
40 ConditionalThrowIfNotEqual<LayerValidationException>(
41 "L2NormalizationLayer: TensorShape set on OutputSlot[0] does not match the inferred shape.",
const char * GetName() const override
std::vector< TensorShape > InferOutputShapes(const std::vector< TensorShape > &inputShapes) const override
L2NormalizationLayer * Clone(Graph &graph) const override
virtual const TensorInfo & GetTensorInfo() const =0
void Accept(ILayerVisitor &visitor) const override
virtual std::unique_ptr< IWorkload > CreateWorkload(const IWorkloadFactory &factory) const override
L2NormalizationLayer(const L2NormalizationDescriptor ¶m, const char *name)
A L2NormalizationDescriptor for the L2NormalizationLayer.
const L2NormalizationDescriptor & GetParameters() const
virtual void VisitL2NormalizationLayer(const IConnectableLayer *layer, const L2NormalizationDescriptor &desc, const char *name=nullptr)=0
L2NormalizationDescriptor m_Param
The parameters for the layer (not including tensor-valued weights etc.).
void VerifyLayerConnections(unsigned int expectedConnections, const CheckLocation &location) const
WorkloadInfo PrepInfoAndDesc(QueueDescriptor &descriptor) const
Helper function to reduce duplication in *LayerCreateWorkload.
virtual std::unique_ptr< IWorkload > CreateL2Normalization(const L2NormalizationQueueDescriptor &descriptor, const WorkloadInfo &info) const
void ValidateTensorShapesFromInputs() override
const TensorShape & GetShape() const
const TensorInfo & GetTensorInfo() const override
const OutputSlot & GetOutputSlot(unsigned int index=0) const override
This layer represents a L2 normalization operation.
const InputSlot & GetInputSlot(unsigned int index) const override