40 : _epsilon(
epsilon), _info(std::move(
info)), _num_groups(
num_groups), _method(method), _fast_math_hint(fast_math_hint), _fused_activation(fused_activation)
63 _fast_math_hint = hint;
68 return _fast_math_hint;
83 return _fused_activation;
95 unsigned int output_width = 0;
96 unsigned int output_height = 0;
111 return output_descriptor;
TensorShape shape
Tensor shape.
NodeType type() const override
Returns node's type.
void set_fast_math_hint(FastMathHint hint)
Sets the fast math fast hint.
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.
float epsilon() const
Epsilon parameter accessor.
TensorDescriptor configure_output(size_t idx) const override
Calculates output configuration.
bool forward_descriptors() override
Forwards descriptor information to outputs if possible.
#define ARM_COMPUTE_ERROR_ON(cond)
If the condition is true then an error message is printed and an exception thrown.
const DataLayout data_layout
Activation Layer Information class.
SimpleTensor< float > src
Copyright (c) 2017-2021 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.
static constexpr NodeType node_type
TensorDescriptor & desc()
TensorInfo metadata accessor.
unsigned int num_groups() const
Number of groups in convolution accessor.
PadStrideInfo convolution_info() const
Convolution metadata accessor.
ConvolutionMethod convolution_method() const
Convolution layer method accessor.
#define ARM_COMPUTE_UNUSED(...)
To avoid unused variables warnings.
virtual void visit(INode &n)=0
Visit INode.
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.
const size_t input_height
FastMathHint fast_math_hint() const
Fast math hint accessor.
Padding and stride information class.
ActivationLayerInfo fused_activation() const
Returns fused activation.
constexpr EdgeID EmptyEdgeID
FastMathHint
Enable or disable fast math for Convolution layer.
ScaleKernelInfo info(interpolation_policy, default_border_mode, PixelValue(), sampling_policy, false)
static TensorDescriptor compute_output_descriptor(const TensorDescriptor &input_descriptor, const TensorDescriptor &weights_descriptor, const PadStrideInfo &info)
Computes convolution output descriptor.
ConvolutionMethod
Supported Convolution layer methods.
FusedConvolutionBatchNormalizationNode(float epsilon, PadStrideInfo info, unsigned int num_groups=1, ConvolutionMethod method=ConvolutionMethod::Default, FastMathHint fast_math_hint=FastMathHint::Disabled, ActivationLayerInfo fused_activation=ActivationLayerInfo())
Constructor.
TensorID output_id(size_t idx) const
Returns the tensor ID of a given output of the node.
void accept(INodeVisitor &v) override
Accepts a node visitor.
void set_convolution_method(ConvolutionMethod method)
Sets the convolution layer method to use.
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.
void set_fused_activation(ActivationLayerInfo fused_activation)
Sets fused activation.
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.