torch.fx.experimental.unification.multipledispatch.utils.typename
-
torch.fx.experimental.unification.multipledispatch.utils.typename(type)[source] -
Получить имя
type. :param type: :type type: Union[Type, Tuple[Type]]- Возвращает:
-
Имя
typeили кортеж имён типов вtype. - Тип возвращаемого значения:
Примеры
>>> typename(int) 'int' >>> typename((int, float)) '(int, float)'
© 2026, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://docs.pytorch.org/docs/2.14/generated/torch.fx.experimental.unification.multipledispatch.utils.typename.html