def test_compute_boundary_ts_2(self):
"""Test for ge.compute_boundary_ts."""
graph = ops_lib.Graph()
with graph.as_default():
a = constant_op.constant(1, name="a")
b = constant_op.constant(1, name="b")
c = math_ops.add(a, b, name="c")
_ = a + c
input_ts, output_ts, inside_ts = ge.compute_boundary_ts([a.op, c.op])
self.assertEqual(list(input_ts), [b])
self.assertEqual(list(output_ts), [a, c])
self.assertEqual(list(inside_ts), [a])
select_test.py 文件源码
python
阅读 19
收藏 0
点赞 0
评论 0
评论列表
文章目录