arg_names#

ivy.arg_names(receiver)[source]#

Get the expected keyword arguments for a function or class constructor.

Parameters:

receiver – Function or class constructor

Returns:

ret – List containing the keyword arguments’ names for a function or class constructor

Examples

>>> x = ivy.arg_names(ivy.tan)
>>> print(x)
['x', 'out']
>>> x = ivy.arg_names(ivy.optimizers.Adam)
>>> print(x)
['lr', 'beta1', 'beta2', 'epsilon', 'inplace',
'stop_gradients', 'trace_on_next_step', 'device']