37 : _info(std::move(
info)), _depth_multiplier(depth_multiplier), _method(method), _out_quant_info(std::move(out_quant_info)), _fused_activation()
45 return _depth_multiplier;
65 return _fused_activation;
78 unsigned int output_width = 0;
79 unsigned int output_height = 0;
95 return output_descriptor;
119 if(!_out_quant_info.
empty())
TensorShape shape
Tensor shape.
static constexpr NodeType node_type
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.
ActivationLayerInfo fused_activation() const
Returns fused activation.
void set_fused_activation(ActivationLayerInfo fused_activation)
Sets fused activation.
int depth_multiplier() const
Depth multiplier accessor.
TensorDescriptor configure_output(size_t idx) const override
Calculates output configuration.
#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
DepthwiseConvolutionMethod depthwise_convolution_method() const
Depthwise convolution layer method accessor.
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.
TensorDescriptor & desc()
TensorInfo metadata accessor.
Quantization information.
#define ARM_COMPUTE_UNUSED(...)
To avoid unused variables warnings.
virtual void visit(INode &n)=0
Visit INode.
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.
DepthwiseConvolutionMethod
Supported Depthwise Convolution layer methods.
PadStrideInfo convolution_info() const
Convolution metadata accessor.
TensorID input_id(size_t idx) const
Returns the tensor ID of a given input of the node.
const size_t input_height
Padding and stride information class.
constexpr EdgeID EmptyEdgeID
DepthwiseConvolutionLayerNode(PadStrideInfo info, int depth_multiplier=1, DepthwiseConvolutionMethod method=DepthwiseConvolutionMethod::Default, QuantizationInfo out_quant_info=QuantizationInfo())
Constructor.
NodeType type() const override
Returns node's type.
ScaleKernelInfo info(interpolation_policy, default_border_mode, PixelValue(), sampling_policy, false)
bool empty() const
Indicates whether this QuantizationInfo has valid settings or not.
TensorID output_id(size_t idx) const
Returns the tensor ID of a given output of the node.
void set_depthwise_convolution_method(DepthwiseConvolutionMethod method)
Sets the depthwise convolution method to use.
constexpr TensorID NullTensorID
Constant NodeID specifying an equivalent of null node.
bool forward_descriptors() override
Forwards descriptor information to outputs if possible.
Tensor * input(size_t idx) const
Returns the tensor of a given input of the node.
DataLayout layout
Data layout.
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.
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.
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.