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,
#define ARMNN_DEPRECATED_MSG(message)
Interface for a layer that is connectable to other layers via InputSlots and OutputSlots.
virtual std::unique_ptr< ITensorHandle > CreateTensorHandle(const TensorInfo &tensorInfo, const bool IsMemoryManaged=true) const =0
virtual bool SupportsSubTensors() const =0
virtual void AfterWorkloadsCreated()
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.
static bool IsLayerSupported(const BackendId &backendId, const IConnectableLayer &layer, Optional< DataType > dataType, std::string &outReasonIfUnsupported)
virtual const BackendId & GetBackendId() const =0
virtual ~IWorkloadFactory()
virtual std::unique_ptr< ITensorHandle > CreateSubTensorHandle(ITensorHandle &parent, TensorShape const &subTensorShape, unsigned int const *subTensorOrigin) const =0
Workload interface to enqueue a layer computation.
Copyright (c) 2021 ARM Limited and Contributors.
LayerType
When adding a new layer, adapt also the LastLayer enum value in the enum class LayerType below.
std::vector< BackendOptions > ModelOptions
Contains information about TensorInfos of a layer.