A primitive to perform tensor operations over two tensors. More...
Functions | |
dnnl_status_t DNNL_API | dnnl_binary_desc_init (dnnl_binary_desc_t *binary_desc, dnnl_alg_kind_t alg_kind, const dnnl_memory_desc_t *src0_desc, const dnnl_memory_desc_t *src1_desc, const dnnl_memory_desc_t *dst_desc) |
Initializes a binary descriptor binary_desc , alg_kind (possible values are dnnl_binary_add and dnnl_binary_mul), and memory descriptors. More... | |
A primitive to perform tensor operations over two tensors.
dnnl_status_t DNNL_API dnnl_binary_desc_init | ( | dnnl_binary_desc_t * | binary_desc, |
dnnl_alg_kind_t | alg_kind, | ||
const dnnl_memory_desc_t * | src0_desc, | ||
const dnnl_memory_desc_t * | src1_desc, | ||
const dnnl_memory_desc_t * | dst_desc | ||
) |
Initializes a binary descriptor binary_desc
, alg_kind
(possible values are dnnl_binary_add and dnnl_binary_mul), and memory descriptors.
dst_desc
can have format_kind
set to dnnl_format_kind_any.src1_desc
and are applied to dimensions for which @ src1_desc has size equal to 1.Inputs:
Outputs: