(self)
| 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: |