latest (dev)
Copy
Latest development documentation · Updated 2026-10-15
tensorplay.functional.is_inference
- tensorplay.functional.is_inference(input)[source]
Returns True if
inputis an inference tensor.A non-view tensor is an inference tensor if and only if it was allocated during inference mode. A view tensor is an inference tensor if and only if the tensor it is a view of is an inference tensor.
For details on inference mode please see Inference Mode.
- Parameters:
input (Tensor) – the input tensor.
Help improve this page
Found an error, an unclear step, or a missing example?
Was this page helpful?

