24.02.1
|
Go to the documentation of this file.
49 const unsigned int max_size =
53 output_descriptor.
shape.
set(0, detection_size);
54 output_descriptor.
shape.
set(1, max_size);
56 return output_descriptor;
constexpr EdgeID EmptyEdgeID
NodeType type() const override
Returns node's type.
static TensorDescriptor compute_output_descriptor(const TensorDescriptor &input_descriptor, const DetectionOutputLayerInfo &info)
Computes detection output output descriptor.
TensorID input_id(size_t idx) const
Returns the tensor ID of a given input of the node.
TensorDescriptor & desc()
TensorInfo metadata accessor.
Tensor * output(size_t idx) const
Returns the tensor of a given output of the node.
#define ARM_COMPUTE_ERROR_ON(cond)
If the condition is true then an error message is printed and an exception thrown.
virtual void visit(INode &n)=0
Visit INode.
Detection Output layer info.
TensorDescriptor configure_output(size_t idx) const override
Calculates output configuration.
TensorShape shape
Tensor shape.
#define ARM_COMPUTE_UNUSED(...)
To avoid unused variables warnings.
void accept(INodeVisitor &v) override
Accepts a node visitor.
DetectionOutputLayerInfo detection_output_info() const
DetectionOutput metadata accessor.
DetectionOutputLayerNode(DetectionOutputLayerInfo detection_info)
Constructor.
Copyright (c) 2017-2024 Arm Limited.
bool forward_descriptors() override
Forwards descriptor information to outputs if possible.
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.
ScaleKernelInfo info(interpolation_policy, default_border_mode, PixelValue(), sampling_policy, false)
TensorShape & set(size_t dimension, size_t value, bool apply_dim_correction=true, bool increase_dim_unit=true)
Accessor to set the value of one of the dimensions.
unsigned int num_dimensions() const
Returns the effective dimensionality of the tensor.