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

Method testFetchNone

tensorflow/python/client/session_test.py:212–222  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

210 c.eval()
211
212 def testFetchNone(self):
213 with session.Session() as s:
214 a = constant_op.constant(1.0)
215 with self.assertRaises(TypeError):
216 s.run(None)
217 with self.assertRaises(TypeError):
218 s.run([None])
219 with self.assertRaises(TypeError):
220 s.run({'b': None})
221 with self.assertRaises(TypeError):
222 s.run({'a': a, 'b': None})
223
224 def testFetchSingleton(self):
225 with session.Session() as sess:

Callers

nothing calls this directly

Calls 3

SessionMethod · 0.45
constantMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected