TensorFlow Eager execution prototype.
EXPERIMENTAL: APIs here are unstable and likely to change without notice.
To use, at program startup, call tf.compat.v1.enable_eager_execution().
inf_nan_callback that checks for infs only.infs and nans in output tensors.inf_nan_callback that checks for nans only.