MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / testBasics

Method testBasics

tensorflow/python/training/supervisor_test.py:97–106  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

95
96 # This test does not test much.
97 def testBasics(self):
98 logdir = self._test_dir("basics")
99 with ops.Graph().as_default():
100 my_op = constant_op.constant(1.0)
101 sv = supervisor.Supervisor(logdir=logdir)
102 sess = sv.prepare_or_wait_for_session("")
103 for _ in xrange(10):
104 self.evaluate(my_op)
105 sess.close()
106 sv.stop()
107
108 def testManagedSession(self):
109 logdir = self._test_dir("managed_session")

Callers

nothing calls this directly

Calls 8

_test_dirMethod · 0.95
stopMethod · 0.95
closeMethod · 0.65
as_defaultMethod · 0.45
GraphMethod · 0.45
constantMethod · 0.45
evaluateMethod · 0.45

Tested by

no test coverage detected