struct dnnl::eltwise_backward::desc

Overview

Descriptor for an elementwise backward propagation primitive. More…

#include <dnnl.hpp>

struct desc
{
    // fields

    dnnl_eltwise_desc_t data;

    // methods

    desc(
        algorithm aalgorithm,
        const memory::desc& diff_data_desc,
        const memory::desc& data_desc,
        float alpha = 0,
        float beta = 0
        );
};

Detailed Documentation

Descriptor for an elementwise backward propagation primitive.

Methods

desc(
    algorithm aalgorithm,
    const memory::desc& diff_data_desc,
    const memory::desc& data_desc,
    float alpha = 0,
    float beta = 0
    )

Constructs a descriptor for an elementwise backward propagation primitive.

Parameters:

aalgorithm

Elementwise algorithm kind.

diff_data_desc

Diff source and destination memory descriptors.

data_desc

Source memory descriptor.

alpha

The alpha parameter for the elementwise operation. Specific meaning depends on the algorithm.

beta

The beta parameter for the elementwise operation. Specific meaning depends on the algorithm.