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

TensorAdapter

TensorAdapter​

class max.pipelines.speculative.driver.TensorAdapter

source

Bases: object

Marks a proposer that runs on experimental Tensor values.

The driver hands such an adapter its batch and carries as single-device Tensor values, one per device where it holds a list, and accepts Tensor results back. A ModuleV3 adapter therefore builds its distributed inputs with from_shard_values() rather than converting graph values itself.