39 : _epsilon(epsilon), _info(
std::move(info)), _num_groups(num_groups), _method(method), _fast_math_hint(fast_math_hint)
62 _fast_math_hint = hint;
67 return _fast_math_hint;
84 unsigned int output_width = 0;
85 unsigned int output_height = 0;
92 std::tie(output_width, output_height) =
scaled_dimensions(input_width, input_height, kernel_width, kernel_height, info);
100 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.
#define ARM_COMPUTE_ERROR_ON(cond)
If the condition is true then an error message is printed and an exception thrown.
const size_t input_height
SimpleTensor< float > src
Copyright (c) 2017-2022 Arm Limited.
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...
TensorDescriptor & desc()
TensorInfo metadata accessor.
#define ARM_COMPUTE_UNUSED(...)
To avoid unused variables warnings.
virtual void visit(INode &n)=0
Visit INode.
static TensorDescriptor compute_output_descriptor(const TensorDescriptor &input_descriptor, const TensorDescriptor &weights_descriptor, const PadStrideInfo &info)
Computes convolution output descriptor.
Tensor * output(size_t idx) const
Returns the tensor of a given output of the node.
const unsigned int num_groups
TensorID input_id(size_t idx) const
Returns the tensor ID of a given input of the node.
Padding and stride information class.
void accept(INodeVisitor &v) override
Accepts a node visitor.
FusedConvolutionBatchNormalizationWithPostOpsNode(float epsilon, PadStrideInfo info, unsigned int num_groups=1, ConvolutionMethod method=ConvolutionMethod::Default, FastMathHint fast_math_hint=FastMathHint::Disabled)
Constructor.
constexpr EdgeID EmptyEdgeID
void set_convolution_method(ConvolutionMethod method)
Sets the convolution layer method to use.
FastMathHint
Enable or disable fast math for Convolution layer.
unsigned int num_groups() const
Number of groups in convolution accessor.
bool forward_descriptors() override
Forwards descriptor information to outputs if possible.
ScaleKernelInfo info(interpolation_policy, default_border_mode, PixelValue(), sampling_policy, false)
TensorDescriptor configure_output(size_t idx) const override
Calculates output configuration.
PadStrideInfo convolution_info() const
Convolution metadata accessor.
FastMathHint fast_math_hint() const
Fast math hint accessor.
ConvolutionMethod
Supported Convolution layer methods.
TensorID output_id(size_t idx) const
Returns the tensor ID of a given output of the node.
ConvolutionMethod convolution_method() const
Convolution layer method accessor.
void set_fast_math_hint(FastMathHint hint)
Sets the fast math hint.
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.
DataLayout layout
Data layout.
float epsilon() const
Epsilon parameter accessor.
DataLayout
[DataLayout enum definition]
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.
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.
static constexpr NodeType node_type