oneAPI Deep Neural Network Library (oneDNN)
Performance library for Deep Learning
1.96.0
dnnl::resampling_forward::desc Struct Reference

Descriptor for resampling forward propagation. More...

#include <dnnl.hpp>

Collaboration diagram for dnnl::resampling_forward::desc:

Public Member Functions

 desc (prop_kind aprop_kind, algorithm aalgorithm, const memory::desc &src_desc, const memory::desc &dst_desc)
 Constructs a descriptor for a resampling forward propagation primitive using source and destination memory descriptors. More...
 
 desc (prop_kind aprop_kind, algorithm aalgorithm, const std::vector< float > &factors, const memory::desc &src_desc)
 Constructs a descriptor for a resampling forward propagation primitive using source memory descriptor and factors. More...
 
 desc (prop_kind aprop_kind, algorithm aalgorithm, const std::vector< float > &factors, const memory::desc &src_desc, const memory::desc &dst_desc)
 Constructs a descriptor for a resampling forward propagation primitive. More...
 

Detailed Description

Descriptor for resampling forward propagation.

Examples:
resampling.cpp.

Constructor & Destructor Documentation

◆ desc() [1/3]

dnnl::resampling_forward::desc::desc ( prop_kind  aprop_kind,
algorithm  aalgorithm,
const memory::desc src_desc,
const memory::desc dst_desc 
)
inline

Constructs a descriptor for a resampling forward propagation primitive using source and destination memory descriptors.

Note
Destination memory descriptor may be initialized with dnnl::memory::format_tag::any value of format_tag.
Parameters
aprop_kindPropagation kind. Possible values are dnnl::prop_kind::forward_training, and dnnl::prop_kind::forward_inference.
aalgorithmresampling algorithm kind: either dnnl::algorithm::resampling_nearest, or dnnl::algorithm::resampling_linear
src_descSource memory descriptor.
dst_descDestination memory descriptor.

◆ desc() [2/3]

dnnl::resampling_forward::desc::desc ( prop_kind  aprop_kind,
algorithm  aalgorithm,
const std::vector< float > &  factors,
const memory::desc src_desc 
)
inline

Constructs a descriptor for a resampling forward propagation primitive using source memory descriptor and factors.

Parameters
aprop_kindPropagation kind. Possible values are dnnl::prop_kind::forward_training, and dnnl::prop_kind::forward_inference.
aalgorithmresampling algorithm kind: either dnnl::algorithm::resampling_nearest, or dnnl::algorithm::resampling_linear
factorsVector of scaling factors for spatial dimension.
src_descSource memory descriptor.

◆ desc() [3/3]

dnnl::resampling_forward::desc::desc ( prop_kind  aprop_kind,
algorithm  aalgorithm,
const std::vector< float > &  factors,
const memory::desc src_desc,
const memory::desc dst_desc 
)
inline

Constructs a descriptor for a resampling forward propagation primitive.

Note
The destination memory descriptor may be initialized with dnnl::memory::format_tag::any value of format_tag.
Parameters
aprop_kindPropagation kind. Possible values are dnnl::prop_kind::forward_training, and dnnl::prop_kind::forward_inference.
aalgorithmresampling algorithm kind: either dnnl::algorithm::resampling_nearest, or dnnl::algorithm::resampling_linear
factorsVector of scaling factors for spatial dimension.
src_descSource memory descriptor.
dst_descDestination memory descriptor.

The documentation for this struct was generated from the following file: