36 : _starts(starts), _ends(ends)
TensorShape shape
Tensor shape.
TensorShape compute_slice_shape(const TensorShape &input_shape, const Coordinates &starts, const Coordinates &ends)
Calculate the slice output shape of a tensor.
SliceLayerNode(const Coordinates &starts, const Coordinates &ends)
Default Constructor.
void accept(INodeVisitor &v) override
Accepts a node visitor.
#define ARM_COMPUTE_ERROR_ON(cond)
If the condition is true then an error message is printed and an exception thrown.
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.
TensorDescriptor configure_output(size_t idx) const override
Calculates output configuration.
Tensor * output(size_t idx) const
Returns the tensor of a given output of the node.
Coordinates starts() const
Start coordinates accessor.
Coordinates ends() const
End coordinates accessor.
TensorID input_id(size_t idx) const
Returns the tensor ID of a given input of the node.
constexpr EdgeID EmptyEdgeID
static TensorDescriptor compute_output_descriptor(const TensorDescriptor &input_descriptor, const Coordinates &starts, const Coordinates &ends)
Computes slice layer output descriptor.
bool forward_descriptors() override
Forwards descriptor information to outputs if possible.
NodeType type() const override
Returns node's type.
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.
Tensor * input(size_t idx) const
Returns the tensor of a given input of the node.