def setUp(self):
self.graph = ops.Graph()
with self.graph.as_default():
self.a0 = constant_op.constant(1.0, shape=[2], name="a0")
self.b0 = constant_op.constant(2.0, shape=[2], name="b0")
self.c0 = math_ops.add(self.a0, self.b0, name="c0")
self.a1 = constant_op.constant(3.0, shape=[2], name="a1")
self.b1 = constant_op.constant(4.0, shape=[2], name="b1")
self.c1 = math_ops.add(self.a1, self.b1, name="c1")
self.a2 = constant_op.constant(3.0, shape=[3], name="a2")
self.b2 = constant_op.constant(4.0, shape=[3], name="b2")
self.c2 = math_ops.add(self.a2, self.b2, name="c2")
reroute_test.py 文件源码
python
阅读 20
收藏 0
点赞 0
评论 0
评论列表
文章目录