torch.Tensor.Tensor.is_inference
Tensor.is_inference(): booleanReturns true if the tensor is in inference mode. Note: torch.js does not have a separate inference mode.
Returns
booleanTensor.is_inference(): booleanReturns true if the tensor is in inference mode. Note: torch.js does not have a separate inference mode.
boolean