oneAPI Deep Neural Network Library (oneDNN)
Performance library for Deep Learning
1.96.0
dnnl::lrn_forward::desc Struct Reference

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

#include <dnnl.hpp>

Collaboration diagram for dnnl::lrn_forward::desc:

Public Member Functions

 desc (prop_kind aprop_kind, algorithm aalgorithm, 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_bf16.cpp, cnn_training_f32.cpp, and lrn.cpp.

Constructor & Destructor Documentation

◆ desc()

dnnl::lrn_forward::desc::desc ( prop_kind  aprop_kind,
algorithm  aalgorithm,
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.

Parameters
aprop_kindPropagation kind. Possible values are dnnl::prop_kind::forward_training, and dnnl::prop_kind::forward_inference.
aalgorithmLRN 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: