IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
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

WeightEntry

WeightEntry​

class max.pipelines.lib.WeightEntry(checkpoint, transform)

source

Bases: object

Names one checkpoint’s weights in a graph.

A graph binds the names it declares and skips the rest, so an entry whose rules name a whole checkpoint serves every graph that loads part of it.

Parameters:

checkpoint​

checkpoint: CheckpointRole

source

The checkpoint whose weights the entry names.

transform​

transform: WeightTransform

source

The rules that name them.

with_prefix()​

with_prefix(prefix)

source

Returns the entry with every name under prefix.

Parameters:

prefix (str) – The text every name starts with afterwards.

Return type:

WeightEntry