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

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

#include <dnnl.hpp>

Collaboration diagram for dnnl::eltwise_forward::desc:

Public Member Functions

 desc (prop_kind aprop_kind, algorithm aalgorithm, const memory::desc &data_desc, float alpha=0, float beta=0)
 Constructs a descriptor for an elementwise forward propagation primitive. More...
 

Detailed Description

Constructor & Destructor Documentation

◆ desc()

dnnl::eltwise_forward::desc::desc ( prop_kind  aprop_kind,
algorithm  aalgorithm,
const memory::desc data_desc,
float  alpha = 0,
float  beta = 0 
)
inline

Constructs a descriptor for an elementwise forward propagation primitive.

Parameters
aprop_kindPropagation kind. Possible values are dnnl::prop_kind::forward_training, and dnnl::prop_kind::forward_inference.
aalgorithmElementwise algorithm kind.
data_descSource and destination memory descriptors.
alphaThe alpha parameter for the elementwise operation. Specific meaning depends on the algorithm.
betaThe beta parameter for the elementwise operation. Specific meaning depends on the algorithm.

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