# tf.contrib.eager.inf_callback

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/python/eager/execution_callbacks.py#L207-L222) |

A specialization of `inf_nan_callback` that checks for `inf`s only.

    tf.contrib.eager.inf_callback(
        op_type, inputs, attrs, outputs, op_name,
        action=tf.contrib.eager.ExecutionCallback.RAISE
    )