Skip to main content

Python class

Weight

Weight

class max.graph.Weight(name: str, dtype: DType, shape: Iterable[int | str | Dim | integer], quantization_encoding: QuantizationEncoding | None = None, align: int | None = None)

Represents a value in a Graph that can be loaded at a later time.

align

align*: int | None* = None

dtype

dtype*: DType*

name

name*: str*

quantization_encoding

quantization_encoding*: QuantizationEncoding | None* = None

shape

shape*: Iterable[int | str | Dim | integer]*