jax.experimental.checkify.Error

jax.experimental.checkify.Error#

class jax.experimental.checkify.Error(_pred: 'dict[ErrorEffect, Bool]', _code: 'dict[ErrorEffect, Int]', _metadata: 'dict[Int, PyTreeDef]', _payload: 'dict[ErrorEffect, Payload]')[source]#
Parameters:
__init__(_pred, _code, _metadata, _payload)#
Parameters:
Return type:

None

Methods

__init__(_pred, _code, _metadata, _payload)

get()

Returns error message if error happened, None if no error happened.

get_exception()

Returns Python exception if error happened, None if no error happened.

throw()

tree_flatten()

tree_unflatten(metadata, data)