torch.is_floating_point
-
torch.is_floating_point(input) -
Возвращает True, если тип данных
inputявляется типом с плавающей точкой, т.е. одним изtorch.float64,torch.float32,torch.float16, иtorch.bfloat16.- Параметры:
-
input (Тензор) – входной тензор.
© 2024, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://pytorch.org/docs/1.13/generated/torch.is_floating_point.html