24.02
|
Go to the documentation of this file.
34 std::string& outReasonIfUnsupported);
38 std::string& outReasonIfUnsupported);
42 std::string& outReasonIfUnsupported,
48 std::string& outReasonIfUnsupported,
56 unsigned int const* subTensorOrigin
61 const
bool IsMemoryManaged = true) const = 0;
66 const
bool IsMemoryManaged = true) const = 0;
76 static
bool IsLayerConfigurationSupported(const
BackendId& backendId,
79 std::
string& outReasonIfUnsupported,
virtual std::unique_ptr< ITensorHandle > CreateTensorHandle(const TensorInfo &tensorInfo, const bool IsMemoryManaged=true) const =0
Workload interface to enqueue a layer computation.
virtual const BackendId & GetBackendId() const =0
virtual std::unique_ptr< ITensorHandle > CreateSubTensorHandle(ITensorHandle &parent, TensorShape const &subTensorShape, unsigned int const *subTensorOrigin) const =0
virtual ~IWorkloadFactory()
Contains information about TensorInfos of a layer.
virtual bool SupportsSubTensors() const =0
static bool IsLayerSupported(const BackendId &backendId, const IConnectableLayer &layer, Optional< DataType > dataType, std::string &outReasonIfUnsupported)
#define ARMNN_DEPRECATED_MSG(message)
Copyright (c) 2021 ARM Limited and Contributors.
Interface for a layer that is connectable to other layers via InputSlots and OutputSlots.
std::vector< BackendOptions > ModelOptions
virtual void AfterWorkloadsCreated()
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.