function_supported_dtypes#
- ivy.function_supported_dtypes(fn, recurse=True)[source]#
Return the supported data types of the current backend’s function.
- Parameters:
fn (
Callable
) – The function to check for the supported dtype attributerecurse (
bool
) – Whether to recurse into used ivy functions. Default isTrue
. (default:True
)
- Return type:
Tuple
- Returns:
ret – The supported data types of the function
Examples
>>> print(ivy.function_supported_dtypes(ivy.acosh)) ('bool', 'float64', 'int64', 'uint8', 'int8', 'float32', 'int32', 'int16', 'bfloat16')