12 #include <boost/core/ignore_unused.hpp> 35 return CloneBase<DebugLayer>(graph,
GetName());
45 BOOST_ASSERT(inferredShapes.size() == 1);
47 ConditionalThrowIfNotEqual<LayerValidationException>(
48 "DebugLayer: TensorShape set on OutputSlot[0] does not match the inferred shape.",
56 boost::ignore_unused(visitor);
LayerGuid GetGuid() const final
const char * GetName() const override
std::vector< TensorShape > InferOutputShapes(const std::vector< TensorShape > &inputShapes) const override
virtual const TensorInfo & GetTensorInfo() const =0
void Debug(const TensorInfo &inputInfo, const T *inputData, LayerGuid guid, const std::string &layerName, unsigned int slotIndex)
WorkloadInfo PrepInfoAndDesc(QueueDescriptor &descriptor) const
Helper function to reduce duplication in *LayerCreateWorkload.
virtual std::unique_ptr< IWorkload > CreateWorkload(const IWorkloadFactory &factory) const override
const std::string & GetNameStr() const
void ValidateTensorShapesFromInputs() override
unsigned int CalculateIndexOnOwner() const override
void VerifyLayerConnections(unsigned int expectedConnections, const CheckLocation &location) const
void Accept(ILayerVisitor &visitor) const override
Base class for all ArmNN exceptions so that users can filter to just those.
DebugLayer * Clone(Graph &graph) const override
This layer visualizes the data flowing through the network.
DebugLayer(const char *name)
virtual std::unique_ptr< IWorkload > CreateDebug(const DebugQueueDescriptor &descriptor, const WorkloadInfo &info) const
const TensorShape & GetShape() const
const TensorInfo & GetTensorInfo() const override
Layer & GetOwningLayer() const
const OutputSlot & GetOutputSlot(unsigned int index=0) const override
const InputSlot & GetInputSlot(unsigned int index) const override