try_else_none

ivy.try_else_none(fn)[source]

Try and return the function, otherwise return None if an exception was raised during function execution.

Parameters

fn (callable) – Function to try and call and return.


Supported Frameworks:

empty jax_logo empty tf_logo empty pytorch_logo empty mxnet_logo empty numpy_logo empty