oneAPI Deep Neural Network Library (oneDNN)  1.4.0
Performance library for Deep Learning
Loading...
Searching...
No Matches
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 prop_kind, algorithm algorithm, const memory::desc &data_desc, float alpha=0, float beta=0)
 Constructs a descriptor for an elementwise forward propagation primitive.

Detailed Description

Constructor & Destructor Documentation

◆ desc()

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

Constructs a descriptor for an elementwise forward propagation primitive.

Inputs:

Outputs:

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