未验证 提交 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
......
......@@ -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 @@
# 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,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, 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, 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
......
......@@ -17,8 +17,8 @@
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
......
......@@ -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
......
......@@ -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
......
......@@ -16,8 +16,6 @@
import unittest
from cinn.common import *
from cinn.frontend import *
from pass_test import PassTest
......
......@@ -17,8 +17,6 @@
import unittest
import numpy as np
from cinn.common import *
from cinn.frontend import *
from pass_test import PassTest
......
......@@ -16,8 +16,6 @@
import unittest
from cinn.common import *
from cinn.frontend import *
from pass_test import PassTest
......
......@@ -16,8 +16,6 @@
import unittest
from cinn.common import *
from cinn.frontend import *
from pass_test import PassTest
......
......@@ -16,7 +16,7 @@
import unittest
from cinn.common import *
from cinn.common import Bool, Float, Int, UInt, make_const
class TestType(unittest.TestCase):
......
......@@ -18,9 +18,8 @@ import sys
import unittest
import numpy as np
from cinn.common import *
from cinn.framework import *
from cinn.frontend import *
from cinn.common import DefaultHostTarget, DefaultNVGPUTarget, Float
from cinn.frontend import Computation, NetBuilder
import paddle
from paddle import fluid, static
......
......@@ -19,9 +19,8 @@ import time
import unittest
import numpy as np
from cinn.common import *
from cinn.framework import *
from cinn.frontend import *
from cinn.common import DefaultHostTarget, DefaultNVGPUTarget
from cinn.frontend import Interpreter
from paddle import fluid
......
......@@ -19,9 +19,8 @@ import time
import unittest
import numpy as np
from cinn.common import *
from cinn.framework import *
from cinn.frontend import *
from cinn.common import DefaultHostTarget, DefaultNVGPUTarget
from cinn.frontend import Interpreter
from paddle import fluid
......
......@@ -18,9 +18,8 @@ import sys
import unittest
import numpy as np
from cinn.common import *
from cinn.framework import *
from cinn.frontend import *
from cinn.common import DefaultHostTarget, DefaultNVGPUTarget
from cinn.frontend import Interpreter
from paddle import fluid
......
......@@ -15,7 +15,8 @@
import unittest
import numpy as np
from cinn.framework import *
from cinn import Target
from cinn.framework import Tensor
class TensorTest(unittest.TestCase):
......
......@@ -16,9 +16,8 @@
import unittest
from cinn.common import *
from cinn.ir import *
from cinn.optim import *
from cinn.ir import Expr, Var
from cinn.optim import simplify
class TestIR(unittest.TestCase):
......
......@@ -19,9 +19,8 @@ import time
import unittest
import numpy as np
from cinn.common import *
from cinn.framework import *
from cinn.frontend import *
from cinn.common import DefaultHostTarget, DefaultNVGPUTarget
from cinn.frontend import Interpreter
from paddle import fluid
......
......@@ -19,9 +19,8 @@ import time
import unittest
import numpy as np
from cinn.common import *
from cinn.framework import *
from cinn.frontend import *
from cinn.common import DefaultHostTarget, DefaultNVGPUTarget
from cinn.frontend import Interpreter
from paddle import fluid
......
......@@ -18,9 +18,8 @@ import sys
import unittest
import numpy as np
from cinn.common import *
from cinn.framework import *
from cinn.frontend import *
from cinn.common import DefaultHostTarget, DefaultNVGPUTarget, Float
from cinn.frontend import NetBuilder
import paddle
from paddle import static
......
......@@ -18,9 +18,8 @@ import sys
import unittest
import numpy as np
from cinn.common import *
from cinn.framework import *
from cinn.frontend import *
from cinn.common import DefaultHostTarget, DefaultNVGPUTarget, Float
from cinn.frontend import Program, Variable
import paddle
from paddle import static
......
......@@ -20,7 +20,6 @@ import cinn
import numpy as np
import scipy
from cinn import Target, ir, lang, pe, runtime
from cinn.common import *
from cinn.poly import create_stages
......
......@@ -19,7 +19,6 @@ import unittest
import cinn
import numpy as np
from cinn import Target, ir, lang, pe, runtime
from cinn.common import *
from cinn.poly import create_stages
......
......@@ -19,7 +19,6 @@ import unittest
import cinn
import numpy as np
from cinn import Target, ir, lang, pe, runtime
from cinn.common import *
from cinn.poly import create_stages
......
......@@ -18,9 +18,8 @@ import sys
import unittest
import numpy as np
from cinn.common import *
from cinn.framework import *
from cinn.frontend import *
from cinn.common import DefaultHostTarget, DefaultNVGPUTarget
from cinn.frontend import Interpreter
from paddle import fluid
......
......@@ -19,9 +19,8 @@ import time
import unittest
import numpy as np
from cinn.common import *
from cinn.framework import *
from cinn.frontend import *
from cinn.common import DefaultHostTarget, DefaultNVGPUTarget
from cinn.frontend import Interpreter
from paddle import fluid
......
......@@ -19,9 +19,8 @@ import time
import unittest
import numpy as np
from cinn.common import *
from cinn.framework import *
from cinn.frontend import *
from cinn.common import DefaultHostTarget, DefaultNVGPUTarget
from cinn.frontend import Interpreter
from paddle import fluid
......
......@@ -19,9 +19,8 @@ import time
import unittest
import numpy as np
from cinn.common import *
from cinn.framework import *
from cinn.frontend import *
from cinn.common import DefaultHostTarget, DefaultNVGPUTarget
from cinn.frontend import Interpreter
from paddle import fluid
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册