View source on GitHub |
Provides information about the session.run()
call being made.
tf.compat.v1.train.SessionRunContext(
original_args, session
)
Provides information about original request to Session.Run()
function.
SessionRunHook objects can stop the loop by calling request_stop()
of
run_context
. In the future we may use this object to add more information
about run without changing the Hook API.
Methods
request_stop
request_stop()
Sets stop requested field.
Hooks can use this function to request stop of iterations.
MonitoredSession
checks whether this is called or not.