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 function

tensor_compat_verify

tensor_compat_verify()​

max.pipelines.speculative.driver.tensor_compat_verify(verify)

source

Adapts a verify that runs on experimental Tensor values.

The driver hands its verify callable graph values; the returned callable passes verify its batch as single-device Tensor values and converts the result back.

Parameters:

verify (Callable[[SequentialBatch[Tensor, Tensor, Tensor]], Verified[_VerifiedHiddenT, Tensor]]) – The target’s verify, reading and returning Tensor values.

Returns:

A verify callable the driver accepts.

Return type:

Callable[[SequentialBatch], Verified[_VerifiedHiddenT, TensorValue]]