oneAPI Deep Neural Network Library (oneDNN)
Performance library for Deep Learning
1.96.0
dnnl::binary::desc Struct Reference

Descriptor for an elementwise binary operator primitive. More...

#include <dnnl.hpp>

Collaboration diagram for dnnl::binary::desc:

Public Member Functions

 desc ()=default
 Default constructor. Produces an empty object.
 
 desc (algorithm aalgorithm, const memory::desc &src0, const memory::desc &src1, const memory::desc &dst)
 Constructs a descriptor for an elementwise binary operator primitive. More...
 

Public Attributes

dnnl_binary_desc_t data
 Underlying C operation descriptor.
 

Detailed Description

Descriptor for an elementwise binary operator primitive.

Examples:
binary.cpp.

Constructor & Destructor Documentation

◆ desc()

dnnl::binary::desc::desc ( algorithm  aalgorithm,
const memory::desc src0,
const memory::desc src1,
const memory::desc dst 
)
inline

Constructs a descriptor for an elementwise binary operator primitive.

Parameters
aalgorithmElementwise binary algorithm.
src0Memory descriptor for source tensor #0.
src1Memory descriptor for source tensor #1.
dstMemory descriptor for destination tensor.

The documentation for this struct was generated from the following file: