Commit bd0c922a authored by zhangyue's avatar zhangyue
Browse files

issue/1008: mv "import infinicore" ahead of "import" torch

parent 5675a4af
...@@ -3,8 +3,8 @@ import os ...@@ -3,8 +3,8 @@ import os
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..")) sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
import torch
import infinicore import infinicore
import torch
from framework import BaseOperatorTest, TensorSpec, TestCase, GenericTestRunner from framework import BaseOperatorTest, TensorSpec, TestCase, GenericTestRunner
# Test cases format: (vec1_shape, vec2_shape, vec1_strides_or_None, vec2_strides_or_None) # Test cases format: (vec1_shape, vec2_shape, vec1_strides_or_None, vec2_strides_or_None)
......
...@@ -3,8 +3,8 @@ import os ...@@ -3,8 +3,8 @@ import os
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..")) sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
import torch
import infinicore import infinicore
import torch
from framework import ( from framework import (
BaseOperatorTest, BaseOperatorTest,
TensorSpec, TensorSpec,
......
...@@ -3,8 +3,8 @@ import os ...@@ -3,8 +3,8 @@ import os
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..")) sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
import torch
import infinicore import infinicore
import torch
from framework import ( from framework import (
BaseOperatorTest, BaseOperatorTest,
TensorSpec, TensorSpec,
......
...@@ -3,8 +3,8 @@ import os ...@@ -3,8 +3,8 @@ import os
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..")) sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
import torch
import infinicore import infinicore
import torch
from framework import ( from framework import (
BaseOperatorTest, BaseOperatorTest,
TensorSpec, TensorSpec,
......
...@@ -3,8 +3,8 @@ import os ...@@ -3,8 +3,8 @@ import os
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..")) sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
import torch
import infinicore import infinicore
import torch
from framework import ( from framework import (
BaseOperatorTest, BaseOperatorTest,
TensorSpec, TensorSpec,
......
...@@ -3,6 +3,7 @@ import sys ...@@ -3,6 +3,7 @@ import sys
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..")) sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
import infinicore
import torch import torch
from framework import BaseOperatorTest, TensorSpec, TestCase, GenericTestRunner from framework import BaseOperatorTest, TensorSpec, TestCase, GenericTestRunner
from framework.tensor import TensorInitializer from framework.tensor import TensorInitializer
...@@ -12,8 +13,6 @@ from framework.utils.tensor_utils import ( ...@@ -12,8 +13,6 @@ from framework.utils.tensor_utils import (
to_torch_dtype, to_torch_dtype,
) )
import infinicore
# ============================================================================== # ==============================================================================
# Operator-specific configuration # Operator-specific configuration
# ============================================================================== # ==============================================================================
......
...@@ -3,8 +3,8 @@ import os ...@@ -3,8 +3,8 @@ import os
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..")) sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
import torch
import infinicore import infinicore
import torch
from framework import BaseOperatorTest, TensorSpec, TestCase, GenericTestRunner from framework import BaseOperatorTest, TensorSpec, TestCase, GenericTestRunner
from framework.datatypes import to_torch_dtype from framework.datatypes import to_torch_dtype
......
...@@ -3,8 +3,8 @@ import os ...@@ -3,8 +3,8 @@ import os
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..")) sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
import torch
import infinicore import infinicore
import torch
from framework import BaseOperatorTest, TensorSpec, TestCase, GenericTestRunner from framework import BaseOperatorTest, TensorSpec, TestCase, GenericTestRunner
from framework.datatypes import to_torch_dtype from framework.datatypes import to_torch_dtype
......
...@@ -3,8 +3,8 @@ import os ...@@ -3,8 +3,8 @@ import os
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..")) sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
import torch
import infinicore import infinicore
import torch
from framework import BaseOperatorTest, TensorSpec, TestCase, GenericTestRunner from framework import BaseOperatorTest, TensorSpec, TestCase, GenericTestRunner
from framework.datatypes import to_torch_dtype from framework.datatypes import to_torch_dtype
......
...@@ -3,8 +3,8 @@ import os ...@@ -3,8 +3,8 @@ import os
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..")) sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
import torch
import infinicore import infinicore
import torch
from framework import ( from framework import (
BaseOperatorTest, BaseOperatorTest,
TensorSpec, TensorSpec,
......
...@@ -3,8 +3,8 @@ import os ...@@ -3,8 +3,8 @@ import os
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..")) sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
import torch
import infinicore import infinicore
import torch
from framework import ( from framework import (
BaseOperatorTest, BaseOperatorTest,
TensorSpec, TensorSpec,
......
...@@ -3,8 +3,8 @@ import os ...@@ -3,8 +3,8 @@ import os
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..")) sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
import torch
import infinicore import infinicore
import torch
from framework import ( from framework import (
BaseOperatorTest, BaseOperatorTest,
TensorSpec, TensorSpec,
......
...@@ -3,8 +3,8 @@ import os ...@@ -3,8 +3,8 @@ import os
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..")) sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
import torch
import infinicore import infinicore
import torch
from framework import ( from framework import (
BaseOperatorTest, BaseOperatorTest,
TensorSpec, TensorSpec,
......
...@@ -3,8 +3,8 @@ import os ...@@ -3,8 +3,8 @@ import os
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..")) sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
import torch
import infinicore import infinicore
import torch
from framework import ( from framework import (
BaseOperatorTest, BaseOperatorTest,
TensorSpec, TensorSpec,
......
...@@ -3,8 +3,8 @@ import os ...@@ -3,8 +3,8 @@ import os
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..")) sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
import torch
import infinicore import infinicore
import torch
from framework import ( from framework import (
BaseOperatorTest, BaseOperatorTest,
TensorSpec, TensorSpec,
......
...@@ -3,8 +3,8 @@ import os ...@@ -3,8 +3,8 @@ import os
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..")) sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
import torch
import infinicore import infinicore
import torch
from framework import ( from framework import (
BaseOperatorTest, BaseOperatorTest,
TensorSpec, TensorSpec,
......
...@@ -3,8 +3,8 @@ import os ...@@ -3,8 +3,8 @@ import os
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..")) sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
import torch
import infinicore import infinicore
import torch
from framework import ( from framework import (
BaseOperatorTest, BaseOperatorTest,
TensorSpec, TensorSpec,
......
...@@ -3,8 +3,8 @@ import os ...@@ -3,8 +3,8 @@ import os
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..")) sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
import torch
import infinicore import infinicore
import torch
from framework import ( from framework import (
BaseOperatorTest, BaseOperatorTest,
TensorSpec, TensorSpec,
......
...@@ -3,8 +3,8 @@ import os ...@@ -3,8 +3,8 @@ import os
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..")) sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
import torch
import infinicore import infinicore
import torch
from framework import ( from framework import (
BaseOperatorTest, BaseOperatorTest,
TensorSpec, TensorSpec,
......
...@@ -3,8 +3,8 @@ import os ...@@ -3,8 +3,8 @@ import os
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..")) sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
import torch
import infinicore import infinicore
import torch
from framework import ( from framework import (
BaseOperatorTest, BaseOperatorTest,
TensorSpec, TensorSpec,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment