struct dnnl::binary::desc
Overview
Descriptor for an elementwise binary operator primitive. More…
#include <dnnl.hpp> struct desc { // fields dnnl_binary_desc_t data; // construction desc(); desc( algorithm aalgorithm, const memory::desc& src0, const memory::desc& src1, const memory::desc& dst ); };
Detailed Documentation
Descriptor for an elementwise binary operator primitive.
Fields
dnnl_binary_desc_t data
Underlying C operation descriptor.
Construction
desc()
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.
Parameters:
aalgorithm | Elementwise binary algorithm. |
src0 | Memory descriptor for source tensor #0. |
src1 | Memory descriptor for source tensor #1. |
dst | Memory descriptor for destination tensor. |