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

Function errstate

tensorflow/tensorflow/python/eager/execution_callbacks.py:351–378  ·  view source on GitHub ↗

Context manager setting error state. Example: ``` c = tf.math.log(0.) # -inf with errstate(inf_or_nan=ExecutionCallback.RAISE): tf.math.log(0.) # <-- Raises InfOrNanError. ``` Args: inf_or_nan: An `ExecutionCallback` determining the action for infinity (`inf`) and NaN

(inf_or_nan=None)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 2

seterrFunction · 0.85
executing_eagerlyMethod · 0.80

Tested by

no test coverage detected