24.02.1
|
constexpr EdgeID EmptyEdgeID
SimpleTensor< float > src
TensorID input_id(size_t idx) const
Returns the tensor ID of a given input of the node.
TensorShape compute_slice_shape(const TensorShape &input_shape, const Coordinates &starts, const Coordinates &ends)
Calculate the slice output shape of a tensor.
Tensor * output(size_t idx) const
Returns the tensor of a given output of the node.
Coordinates starts() const
Start coordinates accessor.
void accept(INodeVisitor &v) override
Accepts a node visitor.
static TensorDescriptor compute_output_descriptor(const TensorDescriptor &input_descriptor, const Coordinates &starts, const Coordinates &ends)
Computes slice layer output descriptor.
#define ARM_COMPUTE_ERROR_ON(cond)
If the condition is true then an error message is printed and an exception thrown.
SliceLayerNode(const Coordinates &starts, const Coordinates &ends)
Default Constructor.
virtual void visit(INode &n)=0
Visit INode.
TensorShape shape
Tensor shape.
#define ARM_COMPUTE_UNUSED(...)
To avoid unused variables warnings.
TensorDescriptor configure_output(size_t idx) const override
Calculates output configuration.
Copyright (c) 2017-2024 Arm Limited.
Coordinates ends() const
End coordinates accessor.
NodeType type() const override
Returns node's type.
Tensor * input(size_t idx) const
Returns the tensor of a given input of the node.
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.
bool forward_descriptors() override
Forwards descriptor information to outputs if possible.