Developer Guide and Reference

  • 2022.1
  • 04/11/2022
  • Public Content
Contents

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.

Product and Performance Information

1

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.