Deep Neural Network Library (DNNL)  1.3.0
Performance library for Deep Learning
Public Member Functions | List of all members
dnnl::resampling_forward::desc Struct Reference

Descriptor for resampling forward propagation. More...

#include <dnnl.hpp>

Collaboration diagram for dnnl::resampling_forward::desc:
Collaboration graph
[legend]

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. More...
 
 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. More...
 
 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. More...
 

Detailed Description

Descriptor for resampling forward propagation.

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.

Note
Destination memory descriptor is allowed to be initialized with dnnl::memory::format_tag::any value of format_tag. Inputs:

Outputs:

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.

Note
Destination memory descriptor is allowed to be initialized with dnnl::memory::format_tag::any value of format_tag. Inputs:

Outputs:

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: