MCPcopy Create free account
hub / github.com/alibaba/nann / seterr

Function seterr

tensorflow/tensorflow/python/eager/execution_callbacks.py:292–347  ·  view source on GitHub ↗

Set how abnormal conditions are handled by the default eager context. Example: ```python tfe.seterr(inf_or_nan=ExecutionCallback.RAISE) a = tf.constant(10.0) b = tf.constant(0.0) try: c = a / b # <-- Raises InfOrNanError. except Exception as e: print("Caught Exception: %s" %

(inf_or_nan=None)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

errstateFunction · 0.85

Calls 6

ExecutionCallbackClass · 0.85
contextMethod · 0.45
getMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected