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

Descriptor for an LRN forward propagation primitive. More...

#include <dnnl.hpp>

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

Public Member Functions

 desc (prop_kind prop_kind, algorithm algorithm, const memory::desc &data_desc, memory::dim local_size, float alpha, float beta, float k=1.f)
 Constructs a descriptor for a LRN forward propagation primitive. More...
 

Detailed Description

Descriptor for an LRN forward propagation primitive.

Examples:
cnn_inference_f32.cpp, cnn_training_f32.cpp, and cpu_cnn_training_bf16.cpp.

Constructor & Destructor Documentation

◆ desc()

dnnl::lrn_forward::desc::desc ( prop_kind  prop_kind,
algorithm  algorithm,
const memory::desc data_desc,
memory::dim  local_size,
float  alpha,
float  beta,
float  k = 1.f 
)
inline

Constructs a descriptor for a LRN forward propagation primitive.

Inputs:

Outputs:

Parameters
prop_kindPropagation kind. Possible values are dnnl::prop_kind::forward_training, and dnnl::prop_kind::forward_inference.
algorithmLRN algorithm kind: either dnnl::algorithm::lrn_across_channels, or dnnl::algorithm::lrn_within_channel.
data_descSource and destination memory descriptors.
local_sizeRegularization local size.
alphaThe alpha regularization parameter.
betaThe beta regularization parameter.
kThe k regularization parameter.

The documentation for this struct was generated from the following file: