For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).
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.