24.08
|
Go to the documentation of this file.
27 clone->m_PreCompiledObject =
const_cast<PreCompiledLayer*
>(
this)->m_PreCompiledObject;
49 m_PreCompiledObject = std::move(preCompiledObject);
virtual std::unique_ptr< IWorkload > CreateWorkload(const IWorkloadFactory &factory) const override
void * m_PreCompiledObject
PreCompiledLayer * Clone(Graph &graph) const override
Creates a dynamically-allocated copy of this layer.
std::unique_ptr< void, PreCompiledObjectDeleter > PreCompiledObjectPtr
const PreCompiledDescriptor & GetParameters() const override
const char * GetName() const override
Returns the name of the layer.
PreCompiledDescriptor m_Param
The parameters for the layer (not including tensor-valued weights etc.).
WorkloadInfo PrepInfoAndDesc(QueueDescriptor &descriptor) const
Helper function to reduce duplication in *Layer::CreateWorkload.
PreCompiledLayer(const PreCompiledDescriptor ¶m, const char *name)
void SetAdditionalInfo(QueueDescriptor &descriptor) const
Copyright (c) 2021 ARM Limited and Contributors.
void SetPreCompiledObject(PreCompiledObjectPtr preCompiledObject)
void ValidateTensorShapesFromInputs() override
A PreCompiledDescriptor for the PreCompiledLayer.
void ExecuteStrategy(IStrategy &strategy) const override
Apply a visitor to this layer.
LayerType
When adding a new layer, adapt also the LastLayer enum value in the enum class LayerType below.
virtual std::unique_ptr< IWorkload > CreateWorkload(LayerType type, const QueueDescriptor &descriptor, const WorkloadInfo &info) const =0
Backends should implement their own CreateWorkload function with a switch statement.
virtual void ExecuteStrategy(const IConnectableLayer *layer, const armnn::BaseDescriptor &descriptor, const std::vector< armnn::ConstTensor > &constants, const char *name, const armnn::LayerBindingId id=0)=0