args_to_ivy

ivy.args_to_ivy(*args: Iterable[Any], **kwargs: Dict[str, Any]) → Tuple[Iterable[Any], Dict[str, Any]][source]

Returns args and keyword args in their ivy.Array or ivy.Variable form for all nested instances, otherwise the arguments are returned unchanged.

Parameters
  • args (sequence of arguments) – The positional arguments to check

  • kwargs (dict of arguments) – The key-word arguments to check

Returns

the same arguments, with any nested arrays converted to ivy.Array or ivy.Variable instances.


Supported Frameworks:

empty jax_logo empty tf_logo empty pytorch_logo empty mxnet_logo empty numpy_logo empty