23.08
|
Go to the documentation of this file.
40 : _info(std::move(
info)), _num_groups(
num_groups), _method(method), _fast_math_hint(fast_math_hint), _out_quant_info(std::move(out_quant_info)), _fused_activation()
58 _fast_math_hint = hint;
63 return _fast_math_hint;
78 return _fused_activation;
95 unsigned int output_width = 0;
96 unsigned int output_height = 0;
111 return output_descriptor;
135 if(!_out_quant_info.
empty())
constexpr EdgeID EmptyEdgeID
SimpleTensor< float > src
void accept(INodeVisitor &v) override
Accepts a node visitor.
ConvolutionMethod convolution_method() const
Convolution layer method accessor.
Quantization information.
DataLayout
[DataLayout enum definition]
void set_convolution_info(PadStrideInfo info)
Sets convolution info.
FastMathHint fast_math_hint() const
Fast math hint accessor.
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.
std::pair< unsigned int, unsigned int > scaled_dimensions(int width, int height, int kernel_width, int kernel_height, const PadStrideInfo &pad_stride_info, const Size2D &dilation=Size2D(1U, 1U))
Returns expected width and height of output scaled tensor depending on dimensions rounding mode.
NodeType type() const override
Returns node's type.
void set_fast_math_hint(FastMathHint hint)
Sets the fast math fast hint.
void set_convolution_method(ConvolutionMethod method)
Sets the convolution layer method to use.
bool forward_descriptors() override
Forwards descriptor information to outputs if possible.
unsigned int num_groups() const
Number of groups in convolution accessor.
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.
Activation Layer Information class.
#define ARM_COMPUTE_ERROR_ON(cond)
If the condition is true then an error message is printed and an exception thrown.
static constexpr NodeType node_type
DataLayout layout
Data layout.
virtual void visit(INode &n)=0
Visit INode.
ConvolutionLayerNode(PadStrideInfo info, unsigned int num_groups=1, ConvolutionMethod method=ConvolutionMethod::Default, FastMathHint fast_math_hint=FastMathHint::Disabled, QuantizationInfo out_quant_info=QuantizationInfo())
Constructor.
TensorShape shape
Tensor shape.
#define ARM_COMPUTE_UNUSED(...)
To avoid unused variables warnings.
ActivationLayerInfo fused_activation() const
Returns fused activation.
FastMathHint
Enable or disable fast math for Convolution layer.
void set_fused_activation(ActivationLayerInfo fused_activation)
Sets fused activation.
const unsigned int num_groups
ConvolutionMethod
Supported Convolution layer methods.
size_t get_dimension_idx(DataLayout data_layout, const DataLayoutDimension data_layout_dimension)
Get index of a tensor's given dimension depending on its layout.
TensorDescriptor configure_output(size_t idx) const override
Calculates output configuration.
Copyright (c) 2017-2023 Arm Limited.
bool empty() const
Indicates whether this QuantizationInfo has valid settings or not.
PadStrideInfo convolution_info() const
Convolution metadata accessor.
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.
static TensorDescriptor compute_output_descriptor(const TensorDescriptor &input_descriptor, const TensorDescriptor &weights_descriptor, const PadStrideInfo &info)
Computes convolution output descriptor.
const size_t input_height