24.02
|
#include <WorkloadFactoryBase.hpp>
Public Member Functions | |
bool | SupportsSubTensors () const override |
std::unique_ptr< ITensorHandle > | CreateSubTensorHandle (ITensorHandle &, TensorShape const &, unsigned int const *) const override |
std::unique_ptr< ITensorHandle > | CreateTensorHandle (const TensorInfo &, const bool) const override |
std::unique_ptr< ITensorHandle > | CreateTensorHandle (const TensorInfo &, DataLayout, const bool) const override |
std::unique_ptr< IWorkload > | CreateWorkload (LayerType, const QueueDescriptor &, const WorkloadInfo &) 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 () |
virtual const BackendId & | GetBackendId () const =0 |
Additional Inherited Members | |
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 13 of file WorkloadFactoryBase.hpp.
|
inlineoverridevirtual |
Implements IWorkloadFactory.
Reimplemented in ClWorkloadFactory, and NeonWorkloadFactory.
Definition at line 19 of file WorkloadFactoryBase.hpp.
|
inlineoverridevirtual |
Implements IWorkloadFactory.
Reimplemented in ClWorkloadFactory, and NeonWorkloadFactory.
Definition at line 25 of file WorkloadFactoryBase.hpp.
|
inlineoverridevirtual |
Implements IWorkloadFactory.
Reimplemented in ClWorkloadFactory, and NeonWorkloadFactory.
Definition at line 29 of file WorkloadFactoryBase.hpp.
|
inlineoverridevirtual |
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.
Reimplemented in ClWorkloadFactory, and NeonWorkloadFactory.
Definition at line 34 of file WorkloadFactoryBase.hpp.
|
inlineoverridevirtual |
Implements IWorkloadFactory.
Reimplemented in ClWorkloadFactory, and NeonWorkloadFactory.
Definition at line 16 of file WorkloadFactoryBase.hpp.