struct dnnl::eltwise_forward::desc
Overview
Descriptor for an elementwise forward propagation primitive. More…
#include <dnnl.hpp> struct desc { // fields dnnl_eltwise_desc_t data; // construction desc( prop_kind aprop_kind, algorithm aalgorithm, const memory::desc& data_desc, float alpha = 0, float beta = 0 ); };
Detailed Documentation
Descriptor for an elementwise forward propagation primitive.
Construction
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.
Parameters:
aprop_kind | Propagation kind. Possible values are dnnl::prop_kind::forward_training, and dnnl::prop_kind::forward_inference. |
aalgorithm | 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. |