Skip to main content
Log in

Python class

Weight

Weight​

class max.graph.Weight(value: TensorValue, name: str, filepath: PathLike | str | None, offset: int | None, quantization_encoding: QuantizationEncoding | None = None)

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

assign()​

assign(filepath: PathLike | str | None = None, offset: int | None = None)

filepath​

filepath*: PathLike | str | None*

name​

name*: str*

offset​

offset*: int | None*

quantization_encoding​

quantization_encoding*: QuantizationEncoding | None* = None

value​

value*: TensorValue*

Was this page helpful?