24.08
|
Go to the documentation of this file.
32 return CloneBase<SubtractionLayer>(graph,
GetName());
This layer represents a subtraction operation.
NOTE: this is an abstract class to encapsulate the element wise operations, it does not implement: st...
const char * GetName() const override
Returns the name of the layer.
SubtractionLayer(const char *name)
Constructor to create a SubtractionLayer.
WorkloadInfo PrepInfoAndDesc(QueueDescriptor &descriptor) const
Helper function to reduce duplication in *Layer::CreateWorkload.
virtual std::unique_ptr< IWorkload > CreateWorkload(const IWorkloadFactory &factory) const override
Makes a workload for the Subtraction type.
void SetAdditionalInfo(QueueDescriptor &descriptor) const
virtual const BaseDescriptor & GetParameters() const override
If the layer has a descriptor return it.
Copyright (c) 2021 ARM Limited and Contributors.
void ExecuteStrategy(IStrategy &strategy) const override
Apply a visitor to this layer.
SubtractionLayer * Clone(Graph &graph) const override
Creates a dynamically-allocated copy of 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