struct dnnl::resampling_backward::desc

Overview

Descriptor for a resampling backward propagation primitive. More…

#include <dnnl.hpp>

struct desc
{
    // fields

    dnnl_resampling_desc_t data;

    // construction

    desc(
        algorithm aalgorithm,
        const memory::desc& diff_src_desc,
        const memory::desc& diff_dst_desc
        );

    desc(
        algorithm aalgorithm,
        const std::vector<float>& factors,
        const memory::desc& diff_src_desc,
        const memory::desc& diff_dst_desc
        );
};

Detailed Documentation

Descriptor for a resampling backward propagation primitive.

Construction

desc(
    algorithm aalgorithm,
    const memory::desc& diff_src_desc,
    const memory::desc& diff_dst_desc
    )

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

Parameters:

aalgorithm

resampling algorithm kind: either dnnl::algorithm::resampling_nearest, or dnnl::algorithm::resampling_linear

diff_src_desc

Diff source memory descriptor.

diff_dst_desc

Diff destination memory descriptor.

desc(
    algorithm aalgorithm,
    const std::vector<float>& factors,
    const memory::desc& diff_src_desc,
    const memory::desc& diff_dst_desc
    )

Constructs a descriptor for resampling backward propagation primitive.

Parameters:

aalgorithm

resampling algorithm kind: either dnnl::algorithm::resampling_nearest, or dnnl::algorithm::resampling_linear

factors

Vector of scaling factors for spatial dimension.

diff_src_desc

Diff source memory descriptor.

diff_dst_desc

Diff destination memory descriptor.