Developer Guide and Reference

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

Floating-point Math Mode

Detailed Documentation

Global Functions
dnnl_status_t DNNL_API dnnl_get_default_fpmath_mode(dnnl_fpmath_mode_t* mode)
Returns the floating-point math mode that will be used by default for all subsequently created primitives.
Parameters:
mode
Output FP math mode.
Returns:
dnnl_success on success and a status describing the error otherwise.
dnnl_status_t DNNL_API dnnl_set_default_fpmath_mode(dnnl_fpmath_mode_t mode)
Sets the floating-point math mode that will be used by default for all subsequently created primitives.
Parameters:
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.