Rate this Page

torch.fx.experimental.unification.multipledispatch.utils.typename#

torch.fx.experimental.unification.multipledispatch.utils.typename(type)[source]#

Get the name of type. :param type: :type type: Union[Type, Tuple[Type]]

Returns:

The name of type or a tuple of the names of the types in type.

Return type:

str

Examples

>>> typename(int)
'int'
>>> typename((int, float))
'(int, float)'