cache_fn

ivy.cache_fn(func: Callable) → Callable[source]

Wrap a function, such that when cache=True is passed as an argument, a previously cached output is returned.

Parameters

func (callable) – The function to wrap, whose output should be cached for later.

Returns

The newly cache wrapped function.


Supported Frameworks:

empty jax_logo empty tf_logo empty pytorch_logo empty mxnet_logo empty numpy_logo empty