Developer Guide and Reference

  • 2022.1
  • 04/11/2022
  • Public Content
Contents

Reduction

Overview

A primitive to compute reduction operation on data tensor using min, max, mul, sum, mean and norm_lp operations. More…
// structs struct dnnl_reduction_desc_t; struct dnnl::reduction; // global functions dnnl_status_t DNNL_API dnnl_reduction_desc_init( dnnl_reduction_desc_t* desc, dnnl_alg_kind_t alg_kind, const dnnl_memory_desc_t* src_desc, const dnnl_memory_desc_t* dst_desc, float p, float eps );

Detailed Documentation

A primitive to compute reduction operation on data tensor using min, max, mul, sum, mean and norm_lp operations.
See also:
Reduction in developer guide
Global Functions
dnnl_status_t DNNL_API dnnl_reduction_desc_init( dnnl_reduction_desc_t* desc, dnnl_alg_kind_t alg_kind, const dnnl_memory_desc_t* src_desc, const dnnl_memory_desc_t* dst_desc, float p, float eps )
Initializes a descriptor for a reduction primitive.
Destination memory descriptor is allowed to be initialized with dnnl_format_tag_any or with format_kind set to dnnl_format_kind_any.
Parameters:
desc
Output descriptor for a reduction primitive.
alg_kind
p
Algorithm specific parameter.
eps
Algorithm specific parameter.
src_desc
Source memory descriptor.
dst_desc
Destination memory descriptor.
Returns:
dnnl_success on success and a status describing the error otherwise.

Product and Performance Information

1

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.