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

Function inf_nan_callback

tensorflow/tensorflow/python/eager/execution_callbacks.py:125–204  ·  view source on GitHub ↗

An execution callback that checks for `inf`s and `nan`s in output tensors. This callback can be used with `tfe.add_execute_callback` to check for invalid numeric values. E.g., ```python tfe.add_execute_callback(tfe.inf_nan_callback) ``` Args: op_type: Name of the TFE operation type

(op_type,
                     inputs,
                     attrs,
                     outputs,
                     op_name,
                     check_inf=True,
                     check_nan=True,
                     action=_DEFAULT_CALLBACK_ACTION)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

inf_callbackFunction · 0.85
nan_callbackFunction · 0.85

Calls 5

ExecutionCallbackClass · 0.85
InfOrNanErrorClass · 0.85
ensure_initializedMethod · 0.80
contextMethod · 0.45
numpyMethod · 0.45

Tested by

no test coverage detected