提交 572bbf9a 编写于 作者: W wjj19950828

rename conv test

上级 8cbf9efa
...@@ -22,12 +22,10 @@ import numpy as np ...@@ -22,12 +22,10 @@ import numpy as np
import unittest import unittest
class TestConvConvert(OPConvertAutoScanTest): class TestConv2dConvert(OPConvertAutoScanTest):
""" """
api: paddle.nn.Conv2d ONNX op: Conv
OPset version: 9 OPset version: 7, 9
1.OPset version需要根据op_mapper中定义的version来设置。
2.测试中所有OP对应升级到Opset version 15。
""" """
def sample_convert_config(self, draw): def sample_convert_config(self, draw):
......
...@@ -58,7 +58,7 @@ class GraphOptimizer(object): ...@@ -58,7 +58,7 @@ class GraphOptimizer(object):
before_len = len(graph.layers) before_len = len(graph.layers)
pass_.apply(graph) pass_.apply(graph)
after_len = len(graph.layers) after_len = len(graph.layers)
if after_len <= before_len: if after_len < before_len:
show_pass_log = True show_pass_log = True
if before_len == after_len: if before_len == after_len:
break break
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册