30 return CloneBase<AbsLayer>(graph,
GetName());
39 BOOST_ASSERT(inferredShapes.size() == 1);
41 ConditionalThrowIfNotEqual<LayerValidationException>(
42 "AbsLayer: TensorShape set on OutputSlot[0] does not match the inferred shape.",
void Accept(ILayerVisitor &visitor) const override
const char * GetName() const override
std::vector< TensorShape > InferOutputShapes(const std::vector< TensorShape > &inputShapes) const override
virtual const TensorInfo & GetTensorInfo() const =0
virtual std::unique_ptr< IWorkload > CreateAbs(const AbsQueueDescriptor &descriptor, const WorkloadInfo &info) const
virtual void VisitAbsLayer(const IConnectableLayer *layer, const char *name=nullptr)=0
WorkloadInfo PrepInfoAndDesc(QueueDescriptor &descriptor) const
Helper function to reduce duplication in *LayerCreateWorkload.
virtual std::unique_ptr< IWorkload > CreateWorkload(const IWorkloadFactory &factory) const override
void ValidateTensorShapesFromInputs() override
void VerifyLayerConnections(unsigned int expectedConnections, const CheckLocation &location) const
AbsLayer * Clone(Graph &graph) const override
AbsLayer(const char *name)
const TensorShape & GetShape() const
const TensorInfo & GetTensorInfo() const override
const OutputSlot & GetOutputSlot(unsigned int index=0) const override
const InputSlot & GetInputSlot(unsigned int index) const override