Descriptor for an LRN forward propagation primitive. More...
#include <dnnl.hpp>
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... | |
Descriptor for an LRN forward propagation primitive.
|
inline |
Constructs a descriptor for a LRN forward propagation primitive.
Inputs:
Outputs:
alg_kind
= dnnl::algorithm::pooling_max and prop_kind
= dnnl::prop_kind::forward_training; must be queried for using dnnl::primitive_desc_base::query_md() after a corresponding primitive descriptor is createdprop_kind | Propagation kind. Possible values are dnnl::prop_kind::forward_training, and dnnl::prop_kind::forward_inference. |
algorithm | LRN algorithm kind: either dnnl::algorithm::lrn_across_channels, or dnnl::algorithm::lrn_within_channel. |
data_desc | Source and destination memory descriptors. |
local_size | Regularization local size. |
alpha | The alpha regularization parameter. |
beta | The beta regularization parameter. |
k | The k regularization parameter. |