Visible to Intel only — GUID: GUID-B662D224-B6BD-4DD1-98EE-2DF1BDF490FC
Visible to Intel only — GUID: GUID-B662D224-B6BD-4DD1-98EE-2DF1BDF490FC
Binary
Overview
A primitive to perform tensor operations over two tensors. More…
// structs
struct dnnl::binary;
// global functions
dnnl_status_t DNNL_API dnnl_binary_primitive_desc_create(
dnnl_primitive_desc_t* primitive_desc,
dnnl_engine_t engine,
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,
const_dnnl_primitive_attr_t attr
);
Detailed Documentation
A primitive to perform tensor operations over two tensors.
See also:
Binary in developer guide
Global Functions
dnnl_status_t DNNL_API dnnl_binary_primitive_desc_create(
dnnl_primitive_desc_t* primitive_desc,
dnnl_engine_t engine,
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,
const_dnnl_primitive_attr_t attr
)
Creates a primitive descriptor for a binary primitive.
Parameters:
primitive_desc |
Output primitive descriptor. |
engine |
Engine to use. |
alg_kind |
Algorithm kind. Valid values are dnnl_binary_add, dnnl_binary_mul, dnnl_binary_max, dnnl_binary_min, dnnl_binary_div, dnnl_binary_sub, dnnl_binary_ge, dnnl_binary_gt, dnnl_binary_le, dnnl_binary_lt, dnnl_binary_eq and dnnl_binary_ne. |
src0_desc |
Source 0 memory descriptor. |
src1_desc |
Source 1 memory descriptor. |
dst_desc |
Destination memory descriptor. |
attr |
Primitive attributes (can be NULL). |
Returns:
dnnl_success on success and a status describing the error otherwise.