30 return CloneBase<AdditionLayer>(graph,
GetName());
virtual void VisitAdditionLayer(const IConnectableLayer *layer, const char *name=nullptr)=0
Function that an addition layer should call back to when its Accept(ILayerVisitor&) function is invok...
Copyright (c) 2020 ARM Limited.
WorkloadInfo PrepInfoAndDesc(QueueDescriptor &descriptor) const
Helper function to reduce duplication in *LayerCreateWorkload.
This layer represents an addition operation.
AdditionLayer(const char *name)
Constructor to create an AdditionLayer.
NOTE: this is an abstract class to encapsulate the element wise operations, it does not implement: st...
void Accept(ILayerVisitor &visitor) const override
Apply a visitor to this layer.
virtual std::unique_ptr< IWorkload > CreateAddition(const AdditionQueueDescriptor &descriptor, const WorkloadInfo &info) const
virtual std::unique_ptr< IWorkload > CreateWorkload(const IWorkloadFactory &factory) const override
Makes a workload for the Addition type.
const char * GetName() const override
Returns the name of the layer.
AdditionLayer * Clone(Graph &graph) const override
Creates a dynamically-allocated copy of this layer.