23.11
|
Go to the documentation of this file.
39 : _info(std::move(
info)),
40 _depth_multiplier(depth_multiplier),
42 _out_quant_info(std::move(out_quant_info)),
51 return _depth_multiplier;
71 return _fused_activation;
89 unsigned int output_width = 0;
90 unsigned int output_height = 0;
98 std::tie(output_width, output_height) =
108 return output_descriptor;
132 if (!_out_quant_info.
empty())
constexpr EdgeID EmptyEdgeID
SimpleTensor< float > src
void accept(INodeVisitor &v) override
Accepts a node visitor.
Quantization information.
DataLayout
[DataLayout enum definition]
static constexpr NodeType node_type
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.
TensorDescriptor & desc()
TensorInfo metadata accessor.
ActivationLayerInfo fused_activation() const
Returns fused activation.
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.
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 TensorDescriptor &weights_descriptor, const PadStrideInfo &info, int depth_multiplier=1)
Computes depthwise convolution output descriptor.
constexpr auto data_layout
DepthwiseConvolutionMethod depthwise_convolution_method() const
Depthwise convolution layer method accessor.
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.
void set_convolution_info(PadStrideInfo info)
Sets convolution info.
TensorDescriptor configure_output(size_t idx) const override
Calculates output configuration.
DataLayout layout
Data layout.
bool forward_descriptors() override
Forwards descriptor information to outputs if possible.
virtual void visit(INode &n)=0
Visit INode.
void set_depthwise_convolution_method(DepthwiseConvolutionMethod method)
Sets the depthwise convolution method to use.
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.
bool empty() const
Indicates whether this QuantizationInfo has valid settings or not.
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.
DepthwiseConvolutionLayerNode(PadStrideInfo info, int depth_multiplier=1, DepthwiseConvolutionMethod method=DepthwiseConvolutionMethod::Default, QuantizationInfo out_quant_info=QuantizationInfo())
Constructor.
int depth_multiplier() const
Depth multiplier accessor.
PadStrideInfo convolution_info() const
Convolution metadata accessor.