Developer Guide and Reference

  • 2022.1
  • 04/11/2022
  • Public Content

struct dnnl_eltwise_desc_t


A descriptor of a element-wise operation. More…
#include <dnnl_types.h> struct dnnl_eltwise_desc_t { // fields dnnl_primitive_kind_t primitive_kind; dnnl_prop_kind_t prop_kind; dnnl_alg_kind_t alg_kind; dnnl_memory_desc_t data_desc; dnnl_memory_desc_t diff_data_desc; float alpha; float beta; };

Detailed Documentation

A descriptor of a element-wise operation.
dnnl_primitive_kind_t primitive_kind
The kind of primitive.
Used for self-identifying the primitive descriptor. Must be dnnl_eltwise.
The kind of propagation.
The kind of eltwise algorithm.
Source and destination memory descriptor.
dnnl_memory_desc_t diff_data_desc
Source and destination gradient memory descriptor.
float alpha
Algorithm specific parameter.
Accordance table:

Product and Performance Information


Performance varies by use, configuration and other factors. Learn more at