DML_SCALE_BIAS structure (directml.h)

Contains the values of scale and bias terms supplied to a DirectML operator. Scale and bias have the effect of applying the function g(x) = x * Scale + Bias.

Syntax

struct DML_SCALE_BIAS {
  FLOAT Scale;
  FLOAT Bias;
};

Members

Scale

Type: FLOAT

The scale term in g(x) = x * Scale + Bias.

Bias

Type: FLOAT

The bias term in g(x) = x * Scale + Bias.

Requirements

Requirement Value
Header directml.h