39 : _starts(starts), _ends(ends), _strides(strides), _info(
std::move(info))
TensorShape shape
Tensor shape.
static TensorDescriptor compute_output_descriptor(const TensorDescriptor &input_descriptor, const Coordinates &starts, const Coordinates &ends, const BiStrides &strides, StridedSliceLayerInfo info)
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.
SimpleTensor< float > src
Copyright (c) 2017-2021 Arm Limited.
void accept(INodeVisitor &v) override
Accepts a node visitor.
TensorDescriptor & desc()
TensorInfo metadata accessor.
TensorDescriptor configure_output(size_t idx) const override
Calculates output configuration.
StridedSliceLayerNode(const Coordinates &starts, const Coordinates &ends, const BiStrides &strides, StridedSliceLayerInfo strided_slice_info)
Default Constructor.
#define ARM_COMPUTE_UNUSED(...)
To avoid unused variables warnings.
bool forward_descriptors() override
Forwards descriptor information to outputs if possible.
virtual void visit(INode &n)=0
Visit INode.
Coordinates ends() const
End coordinates accessor.
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.
BiStrides strides() const
Strides vector accessor.
constexpr EdgeID EmptyEdgeID
ScaleKernelInfo info(interpolation_policy, default_border_mode, PixelValue(), sampling_policy, false)
int32_t shrink_axis_mask() const
TensorID output_id(size_t idx) const
Returns the tensor ID of a given output of the node.
StridedSliceLayerInfo strided_slice_info() const
NodeType type() const override
Returns node's type.
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.
Coordinates starts() const
Start coordinates accessor.
int32_t begin_mask() const