(self)
| 1383 | sess.close() |
| 1384 | |
| 1385 | def testSharedGraph(self): |
| 1386 | with ops.Graph().as_default() as g, ops.device('/cpu:0'): |
| 1387 | a = constant_op.constant(1.0, shape=[1, 2]) |
| 1388 | b = constant_op.constant(2.0, shape=[2, 3]) |
| 1389 | c = math_ops.matmul(a, b) |
| 1390 | |
| 1391 | with session.Session(graph=g) as sess1: |
| 1392 | with session.Session(graph=g) as sess2: |
| 1393 | self.assertAllEqual(sess1.run(c), sess2.run(c)) |
| 1394 | |
| 1395 | def testDuplicatedInputs(self): |
| 1396 | with session.Session() as sess: |
nothing calls this directly
no test coverage detected