Intel CPU specific properties

Overview

Set of Intel CPU specific properties. More…

// global variables

static constexpr Property<bool> ov::intel_cpu::denormals_optimization {"CPU_DENORMALS_OPTIMIZATION"};

Detailed Documentation

Set of Intel CPU specific properties.

Global Variables

static constexpr Property<bool> ov::intel_cpu::denormals_optimization {"CPU_DENORMALS_OPTIMIZATION"}

This property define whether to perform denormals optimization.

Computation with denormals is very time consuming. FTZ(Flushing denormals to zero) and DAZ(Denormals as zero) could significantly improve the performance while it does not comply with IEEE standard. In most cases this behavior has little impact for model accuracy. Users could enable this optimization if see no or acceptable accuracy drop. The following code enables denormals optimization

ie.set_property(ov::denormals_optimization(true)); // enable denormals optimization

While following code disable denormals optimization

ie.set_property(ov::denormals_optimization(false)); // disable denormals optimization