Type SessionRunContext
Namespace tensorflow.train
Parent PythonObjectContainer
Interfaces ISessionRunContext
Provides information about the `session.run()` call being made. 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
Properties
Public instance methods
void request_stop()
Sets stop requested field. Hooks can use this function to request stop of iterations.
`MonitoredSession` checks whether this is called or not.
object request_stop_dyn()
Sets stop requested field. Hooks can use this function to request stop of iterations.
`MonitoredSession` checks whether this is called or not.
Public properties
object original_args get;
A `SessionRunArgs` object holding the original arguments of `run()`. If user called `MonitoredSession.run(fetches=a, feed_dict=b)`, then this
field is equal to SessionRunArgs(a, b).
object original_args_dyn get;
A `SessionRunArgs` object holding the original arguments of `run()`. If user called `MonitoredSession.run(fetches=a, feed_dict=b)`, then this
field is equal to SessionRunArgs(a, b).
object PythonObject get;
object session get;
A TensorFlow session object which will execute the `run`.
object session_dyn get;
A TensorFlow session object which will execute the `run`.
bool stop_requested get;
Returns whether a stop is requested or not. If true, `MonitoredSession` stops iterations.
object stop_requested_dyn get;
Returns whether a stop is requested or not. If true, `MonitoredSession` stops iterations.