提交 51940612 编写于 作者: Q qiaolongfei

fix graph_test.py

上级 587e1906
......@@ -38,8 +38,7 @@ class GraphTest(unittest.TestCase):
self.assertEqual(json_obj['edges'][111]['label'], 'label_111')
def test_graph_edges_inception_v1(self):
json_str = graph.load_model(self.mock_dir + '/inception_v1_model.pb')
json_obj = json.loads(json_str)
json_obj = graph.to_IR_json(self.mock_dir + '/inception_v1_model.pb')
# 286 edges + 143 nodes (out-edge of each node is counted twice)
self.assertEqual(len(json_obj['edges']), 286 + 143)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册