from tensorflow.contrib.learn.python.learn import monitors as monitor_lib

    # TODO(roumposg): Remove when deprecated monitors are removed.
    hooks = monitor_lib.replace_monitors_with_hooks(monitors, self)
