Descriptor for an elementwise forward propagation primitive. More...
#include <dnnl.hpp>

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. More... | |
Descriptor for an elementwise forward propagation primitive.
|
inline |
Constructs a descriptor for an elementwise forward propagation primitive.
Inputs:
Outputs:
| prop_kind | Propagation kind. Possible values are dnnl::prop_kind::forward_training, and dnnl::prop_kind::forward_inference. |
| algorithm | Elementwise algorithm kind. |
| data_desc | Source and destination memory descriptors. |
| alpha | The alpha parameter for the elementwise operation. Specific meaning depends on the algorithm. |
| beta | The beta parameter for the elementwise operation. Specific meaning depends on the algorithm. |