function_supported_dtypes#

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

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

Parameters:
  • fn (Callable) – The function to check for the supported dtype 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 supported dtypes of the function

Examples

>>> print(ivy.function_supported_dtypes(ivy.acosh))
('bool', 'float64', 'int64', 'uint8', 'int8', 'float32', 'int32', 'int16',     'bfloat16')