24.02
|
#include <SampleDynamicWorkloadFactory.hpp>
Public Member Functions | |
SampleDynamicWorkloadFactory (const std::shared_ptr< SampleMemoryManager > &memoryManager) | |
SampleDynamicWorkloadFactory () | |
~SampleDynamicWorkloadFactory () | |
const armnn::BackendId & | GetBackendId () const override |
bool | SupportsSubTensors () const override |
std::unique_ptr< armnn::ITensorHandle > | CreateSubTensorHandle (armnn::ITensorHandle &parent, armnn::TensorShape const &subTensorShape, unsigned int const *subTensorOrigin) const override |
std::unique_ptr< armnn::ITensorHandle > | CreateTensorHandle (const armnn::TensorInfo &tensorInfo, const bool IsMemoryManaged=true) const override |
std::unique_ptr< armnn::ITensorHandle > | CreateTensorHandle (const armnn::TensorInfo &tensorInfo, armnn::DataLayout dataLayout, const bool IsMemoryManaged=true) const override |
std::unique_ptr< armnn::IWorkload > | CreateAddition (const armnn::AdditionQueueDescriptor &descriptor, const armnn::WorkloadInfo &info) const |
std::unique_ptr< armnn::IWorkload > | CreateInput (const armnn::InputQueueDescriptor &descriptor, const armnn::WorkloadInfo &info) const |
std::unique_ptr< armnn::IWorkload > | CreateOutput (const armnn::OutputQueueDescriptor &descriptor, const armnn::WorkloadInfo &info) const |
std::unique_ptr< armnn::IWorkload > | CreateWorkload (armnn::LayerType type, const armnn::QueueDescriptor &descriptor, const armnn::WorkloadInfo &info) const override |
Backends should implement their own CreateWorkload function with a switch statement. More... | |
Public Member Functions inherited from IWorkloadFactory | |
virtual | ~IWorkloadFactory () |
virtual void | AfterWorkloadsCreated () |
Static Public Member Functions | |
static bool | IsLayerSupported (const armnn::IConnectableLayer &layer, armnn::Optional< armnn::DataType > dataType, std::string &outReasonIfUnsupported) |
Static Public Member Functions inherited from IWorkloadFactory | |
static bool | IsLayerSupported (const BackendId &backendId, const IConnectableLayer &layer, Optional< DataType > dataType, std::string &outReasonIfUnsupported) |
static bool | IsLayerSupported (const IConnectableLayer &layer, Optional< DataType > dataType, std::string &outReasonIfUnsupported) |
static bool | IsLayerSupported (const IConnectableLayer &layer, Optional< DataType > dataType, std::string &outReasonIfUnsupported, const ModelOptions &modelOptions) |
static bool | IsLayerSupported (const BackendId &backendId, const IConnectableLayer &layer, Optional< DataType > dataType, std::string &outReasonIfUnsupported, const ModelOptions &modelOptions) |
Definition at line 16 of file SampleDynamicWorkloadFactory.hpp.
|
explicit |
Definition at line 23 of file SampleDynamicWorkloadFactory.cpp.
Definition at line 28 of file SampleDynamicWorkloadFactory.cpp.
|
inline |
Definition at line 22 of file SampleDynamicWorkloadFactory.hpp.
std::unique_ptr< armnn::IWorkload > CreateAddition | ( | const armnn::AdditionQueueDescriptor & | descriptor, |
const armnn::WorkloadInfo & | info | ||
) | const |
Definition at line 60 of file SampleDynamicWorkloadFactory.cpp.
std::unique_ptr< armnn::IWorkload > CreateInput | ( | const armnn::InputQueueDescriptor & | descriptor, |
const armnn::WorkloadInfo & | info | ||
) | const |
Definition at line 67 of file SampleDynamicWorkloadFactory.cpp.
std::unique_ptr< armnn::IWorkload > CreateOutput | ( | const armnn::OutputQueueDescriptor & | descriptor, |
const armnn::WorkloadInfo & | info | ||
) | const |
Definition at line 74 of file SampleDynamicWorkloadFactory.cpp.
|
inlineoverridevirtual |
Implements IWorkloadFactory.
Definition at line 33 of file SampleDynamicWorkloadFactory.hpp.
References armnn::IgnoreUnused().
|
overridevirtual |
Implements IWorkloadFactory.
Definition at line 52 of file SampleDynamicWorkloadFactory.cpp.
|
overridevirtual |
Implements IWorkloadFactory.
Definition at line 45 of file SampleDynamicWorkloadFactory.cpp.
|
overridevirtual |
Backends should implement their own CreateWorkload function with a switch statement.
The case for the switch should be the LayerType and based on that they will call their specific workload creation functionality.
Implements IWorkloadFactory.
Definition at line 81 of file SampleDynamicWorkloadFactory.cpp.
References armnn::info.
|
overridevirtual |
Implements IWorkloadFactory.
Definition at line 33 of file SampleDynamicWorkloadFactory.cpp.
|
static |
Definition at line 38 of file SampleDynamicWorkloadFactory.cpp.
References armnn::IsLayerSupported().
|
inlineoverridevirtual |
Implements IWorkloadFactory.
Definition at line 30 of file SampleDynamicWorkloadFactory.hpp.