Python class
ScaleOrigin
ScaleOrigin
class max.nn.ScaleOrigin(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)
Bases: Enum
Specifies whether the quantization scale is determined statically or dynamically.
DYNAMIC
DYNAMIC = 'dynamic'
Scales are computed at runtime based on the input data.
STATIC
STATIC = 'static'
Scales are pre-computed and loaded with the model weights.
is_dynamic
property is_dynamic: bool
Whether the scale origin is dynamic.
is_static
property is_static: bool
Whether the scale origin is static.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!