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)
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
Tensorvalues. -
Returns:
-
A verify callable the driver accepts.
-
Return type:
-
Callable[[SequentialBatch], Verified[_VerifiedHiddenT, TensorValue]]