A primitive to sum data. More...
Functions | |
dnnl_status_t DNNL_API | dnnl_sum_primitive_desc_create (dnnl_primitive_desc_t *sum_primitive_desc, const dnnl_memory_desc_t *dst_mds, int n, const float *scales, const dnnl_memory_desc_t *src_mds, const_dnnl_primitive_attr_t attr, dnnl_engine_t engine) |
Creates out-of-place sum_primitive_desc for sum of n inputs multiplied by scale with resulting output_desc memory descriptor. More... | |
A primitive to sum data.
dnnl_status_t DNNL_API dnnl_sum_primitive_desc_create | ( | dnnl_primitive_desc_t * | sum_primitive_desc, |
const dnnl_memory_desc_t * | dst_mds, | ||
int | n, | ||
const float * | scales, | ||
const dnnl_memory_desc_t * | src_mds, | ||
const_dnnl_primitive_attr_t | attr, | ||
dnnl_engine_t | engine | ||
) |
Creates out-of-place sum_primitive_desc
for sum of n
inputs multiplied by scale with resulting output_desc
memory descriptor.
output_desc
can be NULL or specified with the dnnl_format_kind_any format kind – in this case, the appropriate memory format would be chosen automatically.
Inputs:
n
- 1 (dnnl_query_src_md, n
- 1)Outputs: