oneAPI Deep Neural Network Library (oneDNN)  1.4.0
Performance library for Deep Learning
Loading...
Searching...
No Matches
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 prop_kind, algorithm algorithm, 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.
 desc (prop_kind prop_kind, algorithm algorithm, 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.
 desc (prop_kind prop_kind, algorithm algorithm, const std::vector< float > &factors, const memory::desc &src_desc, const memory::desc &dst_desc)
 Constructs a descriptor for a resampling forward propagation primitive.

Detailed Description

Descriptor for resampling forward propagation.

Examples
resampling.cpp.

Constructor & Destructor Documentation

◆ desc() [1/3]

dnnl::resampling_forward::desc::desc ( prop_kind prop_kind,
algorithm algorithm,
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.

Inputs:

Outputs:

Note
Destination memory descriptor may be initialized with dnnl::memory::format_tag::any value of format_tag.
Parameters
prop_kindPropagation kind. Possible values are dnnl::prop_kind::forward_training, and dnnl::prop_kind::forward_inference.
algorithmresampling 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 prop_kind,
algorithm algorithm,
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.

Inputs:

Parameters
prop_kindPropagation kind. Possible values are dnnl::prop_kind::forward_training, and dnnl::prop_kind::forward_inference.
algorithmresampling 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 prop_kind,
algorithm algorithm,
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.

Inputs:

Outputs:

Note
Destination memory descriptor may be initialized with dnnl::memory::format_tag::any value of format_tag.
Parameters
prop_kindPropagation kind. Possible values are dnnl::prop_kind::forward_training, and dnnl::prop_kind::forward_inference.
algorithmresampling 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: