Rate this Page

torch.fx.experimental.unification.multipledispatch.variadic.isvariadic#

torch.fx.experimental.unification.multipledispatch.variadic.isvariadic(obj)[source]#

Check whether the type obj is variadic. :param obj: The type to check :type obj: type

Returns:

Whether or not obj is variadic

Return type:

bool

Examples

>>> isvariadic(int)
False
>>> isvariadic(Variadic[int])
True