tf.contrib.learn.monitors.NanLoss.begin(max_steps=None)
Called at the beginning of training.
When called, the default graph is the one we are executing.
Args:
max_steps: int, the maximum global step this training will run until.
Raises:
ValueError: if we've already begun a run.