TensorPlay
latest (dev)
Copy
View Markdown

Latest development documentation · Updated 2026-10-15

tensorplay.functional.is_inference

tensorplay.functional.is_inference(input)[source]

Returns True if input is 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.

On this page

Ask DeepWiki