struct dnnl::lrn_backward::desc

Overview

Descriptor for an LRN backward propagation primitive. More…

#include <dnnl.hpp>

struct desc
{
    // fields

    dnnl_lrn_desc_t data;

    // construction

    desc(
        algorithm aalgorithm,
        const memory::desc& data_desc,
        const memory::desc& diff_data_desc,
        memory::dim local_size,
        float alpha,
        float beta,
        float k = 1.f
        );
};

Detailed Documentation

Descriptor for an LRN backward propagation primitive.

Construction

desc(
    algorithm aalgorithm,
    const memory::desc& data_desc,
    const memory::desc& diff_data_desc,
    memory::dim local_size,
    float alpha,
    float beta,
    float k = 1.f
    )

Constructs a descriptor for an LRN backward propagation primitive.

Parameters:

aalgorithm

LRN algorithm kind: either dnnl::algorithm::lrn_across_channels, or dnnl::algorithm::lrn_within_channel.

diff_data_desc

Diff source and diff destination memory descriptor.

data_desc

Source memory descriptor.

local_size

Regularization local size.

alpha

The alpha regularization parameter.

beta

The beta regularization parameter.

k

The k regularization parameter.