36 : _stream(stream), _format_info(format_info), _transform(transform)
NodeType type() const override
Returns node's type.
#define ARM_COMPUTE_ERROR_ON(cond)
If the condition is true then an error message is printed and an exception thrown.
std::ostream & stream() const
Stream metadata accessor.
Interface for CPU tensor.
SimpleTensor< float > src
Copyright (c) 2017-2021 Arm Limited.
TensorDescriptor & desc()
TensorInfo metadata accessor.
#define ARM_COMPUTE_UNUSED(...)
To avoid unused variables warnings.
virtual void visit(INode &n)=0
Visit INode.
Tensor * output(size_t idx) const
Returns the tensor of a given output of the node.
TensorID input_id(size_t idx) const
Returns the tensor ID of a given input of the node.
constexpr EdgeID EmptyEdgeID
const std::function< ITensor *(ITensor *)> transform() const
Transform function metadata accessor.
bool forward_descriptors() override
Forwards descriptor information to outputs if possible.
TensorID output_id(size_t idx) const
Returns the tensor ID of a given output of the node.
constexpr TensorID NullTensorID
Constant NodeID specifying an equivalent of null node.
PrintLayerNode(std::ostream &stream, const IOFormatInfo &format_info=IOFormatInfo(), const std::function< ITensor *(ITensor *)> transform=nullptr)
Constructor.
TensorDescriptor configure_output(size_t idx) const override
Calculates output configuration.
Tensor * input(size_t idx) const
Returns the tensor of a given input of the node.
const IOFormatInfo format_info() const
Formatting metadata accessor.
void accept(INodeVisitor &v) override
Accepts a node visitor.