23.08
|
Go to the documentation of this file.
37 unsigned int depth_multiplier,
40 : _epsilon(
epsilon), _info(std::move(
info)), _depth_multiplier(depth_multiplier), _method(method), _fused_activation(fused_activation)
68 return _depth_multiplier;
73 return _fused_activation;
86 unsigned int output_width = 0;
87 unsigned int output_height = 0;
102 return output_descriptor;
constexpr EdgeID EmptyEdgeID
SimpleTensor< float > src
void set_fused_activation(ActivationLayerInfo fused_activation)
Sets fused activation.
TensorID input_id(size_t idx) const
Returns the tensor ID of a given input of the node.
ActivationLayerInfo fused_activation() const
Returns fused activation.
bool forward_descriptors() override
Forwards descriptor information to outputs if possible.
TensorDescriptor & desc()
TensorInfo metadata accessor.
PadStrideInfo convolution_info() const
Convolution metadata accessor.
void accept(INodeVisitor &v) override
Accepts a node visitor.
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.
unsigned int depth_multiplier() const
Depth multiplier accessor.
TensorDescriptor configure_output(size_t idx) const override
Calculates output configuration.
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.
float epsilon() const
Epsilon parameter accessor.
static constexpr NodeType node_type
DataLayout layout
Data layout.
void set_depthwise_convolution_method(DepthwiseConvolutionMethod method)
Sets the depthwise convolution layer method to use.
FusedDepthwiseConvolutionBatchNormalizationNode(float epsilon, PadStrideInfo info, unsigned int depth_multiplier, DepthwiseConvolutionMethod method, ActivationLayerInfo fused_activation=ActivationLayerInfo())
Constructor.
virtual void visit(INode &n)=0
Visit INode.
TensorShape shape
Tensor shape.
#define ARM_COMPUTE_UNUSED(...)
To avoid unused variables warnings.
NodeType type() const override
Returns node's type.
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.
Copyright (c) 2017-2023 Arm Limited.
static TensorDescriptor compute_output_descriptor(const TensorDescriptor &input_descriptor, const TensorDescriptor &weights_descriptor, const PadStrideInfo &info, int depth_multiplier)
Computes convolution output descriptor.
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.
DepthwiseConvolutionMethod
Supported Depthwise Convolution layer methods.
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.
DepthwiseConvolutionMethod depthwise_convolution_method() const
Depthwise convolution layer method accessor.
const size_t input_height