36 : _info(
std::move(prior_info))
55 output_descriptor.
shape.
set(0, layer_width * layer_height * num_priors * 4);
59 return output_descriptor;
TensorShape shape
Tensor shape.
size_t get_dimension_size(const TensorDescriptor &descriptor, const DataLayoutDimension data_layout_dimension)
Get size of a tensor's given dimension depending on its layout.
static TensorDescriptor compute_output_descriptor(const TensorDescriptor &input_descriptor, const PriorBoxLayerInfo &info)
Computes priorbox output descriptor.
std::vector< float > aspect_ratios() const
Get aspect ratios.
#define ARM_COMPUTE_ERROR_ON(cond)
If the condition is true then an error message is printed and an exception thrown.
Copyright (c) 2017-2023 Arm Limited.
TensorDescriptor & desc()
TensorInfo metadata accessor.
bool forward_descriptors() override
Forwards descriptor information to outputs if possible.
#define ARM_COMPUTE_UNUSED(...)
To avoid unused variables warnings.
virtual void visit(INode &n)=0
Visit INode.
NodeType type() const override
Returns node's type.
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
PriorBoxLayerNode(PriorBoxLayerInfo prior_info)
Constructor.
ScaleKernelInfo info(interpolation_policy, default_border_mode, PixelValue(), sampling_policy, false)
void accept(INodeVisitor &v) override
Accepts a node visitor.
std::vector< float > max_sizes() const
Get max sizes.
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.
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.
PriorBoxLayerInfo priorbox_info() const
PriorBox metadata accessor.
std::vector< float > min_sizes() const
Get min sizes.
TensorDescriptor configure_output(size_t idx) const override
Calculates output configuration.