未验证 提交 f4bdfa60 编写于 作者: 张春乔 提交者: GitHub

[CodeStyle][CINN] ruff F403 in test/cinn (#55255)

上级 b4d7e1e0
......@@ -97,7 +97,3 @@ ignore = [
"test/dygraph_to_static/test_loop.py" = ["C416", "F821"]
# Ignore unnecessary lambda in dy2st unittest test_lambda
"test/dygraph_to_static/test_lambda.py" = ["PLC3002"]
# Temporarily ignore CINN files, it will fix later
"test/cinn/**" = [
"F403",
]
......@@ -16,8 +16,6 @@
import unittest
from cinn.common import *
from cinn.frontend import *
from op_mapper_test import OpMapperTest
import paddle
......
......@@ -16,8 +16,6 @@
import unittest
from cinn.common import *
from cinn.frontend import *
from op_mapper_test import OpMapperTest
import paddle
......
......@@ -14,7 +14,7 @@
import unittest
from cinn.common import *
from cinn.common import is_compiled_with_cudnn
from op_mapper_test import OpMapperTest
import paddle
......
......@@ -18,8 +18,17 @@ import struct
import unittest
import numpy as np
from cinn.common import *
from cinn.frontend import *
from cinn.common import (
BFloat16,
Bool,
DefaultHostTarget,
DefaultNVGPUTarget,
Float,
Float16,
Int,
UInt,
is_compiled_with_cuda,
)
from cinn.runtime import seed as cinn_seed
import paddle
......
......@@ -15,8 +15,8 @@
# limitations under the License.
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -13,8 +13,8 @@
# limitations under the License.
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -13,8 +13,8 @@
# limitations under the License.
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -13,8 +13,8 @@
# limitations under the License.
import numpy as np
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -14,10 +14,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import numpy as np
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -16,8 +16,8 @@
import numpy as np
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -16,8 +16,8 @@
import numpy as np
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -13,8 +13,8 @@
# limitations under the License.
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -12,8 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -13,8 +13,8 @@
# limitations under the License.
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -13,8 +13,8 @@
# limitations under the License.
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -15,8 +15,8 @@
# limitations under the License.
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -13,12 +13,11 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import unittest
import numpy as np
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
import paddle
......
......@@ -16,8 +16,8 @@ import unittest
from struct import pack, unpack
import numpy as np
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
import paddle
......
......@@ -13,8 +13,8 @@
# limitations under the License.
import numpy as np
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -17,8 +17,8 @@
import unittest
import numpy as np
from cinn.common import *
from cinn.frontend import *
from cinn.common import Float
from cinn.frontend import NetBuilder
from op_test import OpTest
import paddle
......
......@@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -15,8 +15,8 @@
# limitations under the License.
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -15,8 +15,8 @@
# limitations under the License.
import numpy as np
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -15,8 +15,8 @@
# limitations under the License.
import numpy as np
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -15,8 +15,8 @@
# limitations under the License.
import numpy as np
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -12,8 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -14,9 +14,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from cinn.common import *
from cinn.frontend import *
from cinn.runtime import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from cinn.runtime import set_cinn_cudnn_deterministic
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -13,9 +13,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -12,8 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cudnn
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -13,8 +13,8 @@
# limitations under the License.
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -15,8 +15,8 @@
# limitations under the License.
import numpy as np
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -15,8 +15,8 @@
# limitations under the License.
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -20,8 +20,8 @@ import unittest
from itertools import product
import numpy as np
from cinn.common import *
from cinn.frontend import *
from cinn.common import Int, is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
import paddle
......
......@@ -18,8 +18,8 @@ import logging
import os
import numpy as np
from cinn.common import *
from cinn.frontend import *
from cinn.common import Int, is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -15,8 +15,8 @@
# limitations under the License.
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -15,8 +15,8 @@
# limitations under the License.
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -16,8 +16,8 @@
import numpy as np
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -16,8 +16,8 @@
import numpy as np
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -16,8 +16,8 @@
import numpy as np
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -15,8 +15,8 @@
# limitations under the License.
import numpy as np
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -14,8 +14,8 @@
import numpy as np
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -12,8 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from cinn.common import *
from cinn.frontend import *
from cinn.frontend import NetBuilder
from op_test import OpTest
from op_test_helper import TestCaseHelper
......
......@@ -14,8 +14,8 @@
import numpy as np
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -13,8 +13,8 @@
# limitations under the License.
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -14,8 +14,8 @@
import numpy as np
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -15,8 +15,8 @@
# limitations under the License.
import numpy as np
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -14,8 +14,8 @@
import numpy as np
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -15,8 +15,8 @@
# limitations under the License.
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -15,8 +15,8 @@
# limitations under the License.
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -13,8 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -15,8 +15,8 @@
# limitations under the License.
import numpy as np
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -15,8 +15,8 @@
# limitations under the License.
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cudnn
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -15,8 +15,8 @@
# limitations under the License.
import numpy as np
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -15,8 +15,8 @@
# limitations under the License.
import numpy as np
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -16,8 +16,8 @@
import unittest
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
import paddle
......
......@@ -14,8 +14,7 @@
import numpy as np
from cinn.common import *
from cinn.frontend import *
from cinn.frontend import NetBuilder
from op_test import OpTest
from op_test_helper import TestCaseHelper
......
......@@ -17,8 +17,8 @@
import unittest
import numpy as np
from cinn.common import *
from cinn.frontend import *
from cinn.common import Bool, Float, Int, is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
import paddle
......
......@@ -13,8 +13,8 @@
# limitations under the License.
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -13,8 +13,8 @@
# limitations under the License.
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -15,8 +15,8 @@
# limitations under the License.
import numpy as np
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -15,8 +15,8 @@
# limitations under the License.
import numpy as np
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -15,9 +15,6 @@
# limitations under the License.
from cinn.common import *
from cinn.frontend import *
# paddle resize is based on cv2 module
# This test requires cv2 module (pip3.6 install opencv_python==3.2.0.7)
# @OpTestTool.skip_if(not is_compiled_with_cuda(),
......
......@@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -14,8 +14,8 @@
import numpy as np
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -12,8 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -13,8 +13,8 @@
# limitations under the License.
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from cinn.common import *
from cinn.frontend import *
from cinn.common import Float, Int, is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper, run_test
......
......@@ -15,8 +15,8 @@
# limitations under the License.
import numpy as np
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -12,8 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -15,8 +15,8 @@
# limitations under the License.
import numpy as np
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -15,8 +15,8 @@
# limitations under the License.
import numpy as np
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -12,8 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -14,8 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from cinn.common import *
from cinn.frontend import *
from cinn.frontend import NetBuilder
from op_test import OpTest
from op_test_helper import TestCaseHelper, run_test
......
......@@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
......@@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from cinn.common import *
from cinn.frontend import *
from cinn.common import is_compiled_with_cuda
from cinn.frontend import NetBuilder
from op_test import OpTest, OpTestTool
from op_test_helper import TestCaseHelper
......
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册