On this page
torch.is_floating_point
torch.is_floating_point(input)-
Returns True if the data type of
inputis a floating point data type i.e., one oftorch.float64,torch.float32,torch.float16, andtorch.bfloat16.- Parameters
-
input (Tensor) – the input tensor.
© 2024, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://pytorch.org/docs/2.1/generated/torch.is_floating_point.html