aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/training/session_run_hook.py
diff options
context:
space:
mode:
authorGravatar Anna R <annarev@google.com>2018-01-30 20:28:38 -0800
committerGravatar Michael Case <mikecase@google.com>2018-01-31 16:48:35 -0800
commite9d4d3d06c0fb211f7488f868fefb477f07df4f8 (patch)
tree727a6fa1cb1a08d259cb461d17819409278fb8cf /tensorflow/python/training/session_run_hook.py
parent2a01e3f2ee1ec5b1cf212dd949c1072129e4770a (diff)
Adding tf_export decorators/calls to TensorFlow functions and constants.
PiperOrigin-RevId: 183936100
Diffstat (limited to 'tensorflow/python/training/session_run_hook.py')
-rw-r--r--tensorflow/python/training/session_run_hook.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tensorflow/python/training/session_run_hook.py b/tensorflow/python/training/session_run_hook.py
index 5b023d8a26..89f4030065 100644
--- a/tensorflow/python/training/session_run_hook.py
+++ b/tensorflow/python/training/session_run_hook.py
@@ -96,8 +96,10 @@ from __future__ import division
from __future__ import print_function
import collections
+from tensorflow.python.util.tf_export import tf_export
+@tf_export("train.SessionRunHook")
class SessionRunHook(object):
"""Hook to extend calls to MonitoredSession.run()."""
@@ -189,6 +191,7 @@ class SessionRunHook(object):
pass
+@tf_export("train.SessionRunArgs")
class SessionRunArgs(
collections.namedtuple("SessionRunArgs",
["fetches", "feed_dict", "options"])):
@@ -213,6 +216,7 @@ class SessionRunArgs(
return super(SessionRunArgs, cls).__new__(cls, fetches, feed_dict, options)
+@tf_export("train.SessionRunContext")
class SessionRunContext(object):
"""Provides information about the `session.run()` call being made.
@@ -264,6 +268,7 @@ class SessionRunContext(object):
self._stop_requested = True
+@tf_export("train.SessionRunValues")
class SessionRunValues(
collections.namedtuple("SessionRunValues",
["results", "options", "run_metadata"])):