function_unsupported_devices#

ivy.function_unsupported_devices(fn, recurse=True)[source]#

Return the unsupported devices of the current backend’s function. The function returns a dict containing the unsupported devices for the compositional and primary implementations in case of partial mixed functions.

Parameters:
  • fn (Callable) – The function to check for the unsupported device attribute

  • recurse (bool, default: True) – Whether to recurse into used ivy functions. Default is True.

Return type:

Union[Tuple, dict]

Returns:

ret – Tuple or dict containing the unsupported devices of the function

Examples

>>> print(ivy.function_unsupported_devices(ivy.ones))
('tpu',)