Spec-Zone.ru › PyTorch 1

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

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API