12 class ScopedCpuTensorHandle;
36 std::vector<TensorShape>
InferOutputShapes(
const std::vector<TensorShape>& inputShapes)
const override;
~ConstantLayer()=default
Default destructor.
ConstantTensors GetConstantTensorsByRef() override
Retrieve the handles to the constant values stored by the layer.
virtual std::unique_ptr< IWorkload > CreateWorkload(const IWorkloadFactory &factory) const override
void ReleaseConstantData() override
Free up the constant source data stored by the layer.
std::vector< std::reference_wrapper< std::unique_ptr< ScopedCpuTensorHandle > >> ConstantTensors
std::vector< TensorShape > InferOutputShapes(const std::vector< TensorShape > &inputShapes) const override
void Accept(ILayerVisitor &visitor) const override
ConstantLayer * Clone(Graph &graph) const override
std::unique_ptr< ScopedCpuTensorHandle > m_LayerOutput
A layer that the constant data can be bound to.
void ValidateTensorShapesFromInputs() override
ConstantLayer(const char *name)