Unverified Commit b92a7d88 authored by baominghelly's avatar baominghelly Committed by GitHub
Browse files

issue/853 - Bug fix: import TestCase and utils class from new file (#854)

* issue/853 - Bug fix: import TestCase and utils class from new file

* issue/853 - import class from framework
parent ced3fc03
...@@ -4,10 +4,15 @@ import sys ...@@ -4,10 +4,15 @@ 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 torch import torch
from framework.base import BaseOperatorTest, TensorSpec, TestCase
from framework.runner import GenericTestRunner from framework import (
from framework.tensor import TensorInitializer BaseOperatorTest,
from framework.utils import convert_infinicore_to_torch GenericTestRunner,
TensorInitializer,
TensorSpec,
TestCase,
convert_infinicore_to_torch,
)
import infinicore import infinicore
......
...@@ -4,8 +4,13 @@ import sys ...@@ -4,8 +4,13 @@ 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 torch import torch
from framework.base import BaseOperatorTest, TensorSpec, TestCase
from framework.runner import GenericTestRunner from framework import (
BaseOperatorTest,
GenericTestRunner,
TensorSpec,
TestCase
)
import infinicore import infinicore
......
...@@ -4,8 +4,13 @@ import sys ...@@ -4,8 +4,13 @@ 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 torch import torch
from framework.base import BaseOperatorTest, TensorSpec, TestCase
from framework.runner import GenericTestRunner from framework import (
BaseOperatorTest,
GenericTestRunner,
TensorSpec,
TestCase
)
import infinicore import infinicore
......
...@@ -4,8 +4,13 @@ import sys ...@@ -4,8 +4,13 @@ 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 torch import torch
from framework.base import BaseOperatorTest, TensorSpec, TestCase
from framework.runner import GenericTestRunner from framework import (
BaseOperatorTest,
GenericTestRunner,
TensorSpec,
TestCase
)
from infinicore.nn.functional import RopeAlgo from infinicore.nn.functional import RopeAlgo
import infinicore import infinicore
......
...@@ -5,9 +5,15 @@ sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..")) ...@@ -5,9 +5,15 @@ sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
import torch import torch
import infinicore import infinicore
from framework.base import BaseOperatorTest, TensorSpec, TestCase
from framework.runner import GenericTestRunner from framework import (
from framework.utils import is_broadcast BaseOperatorTest,
GenericTestRunner,
is_broadcast,
TensorSpec,
TestCase
)
# ============================================================================== # ==============================================================================
# Operator-specific configuration # Operator-specific configuration
......
...@@ -5,9 +5,15 @@ sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..")) ...@@ -5,9 +5,15 @@ sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
import torch import torch
import infinicore import infinicore
from framework.base import BaseOperatorTest, TensorSpec, TestCase
from framework.runner import GenericTestRunner from framework import (
from framework.utils import is_broadcast BaseOperatorTest,
GenericTestRunner,
TensorSpec,
TestCase,
is_broadcast
)
# ============================================================================== # ==============================================================================
# Operator-specific configuration # Operator-specific configuration
......
...@@ -5,9 +5,15 @@ sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..")) ...@@ -5,9 +5,15 @@ sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
import torch import torch
import infinicore import infinicore
from framework.base import BaseOperatorTest, TensorSpec, TestCase
from framework.runner import GenericTestRunner from framework import (
from framework.utils import is_broadcast BaseOperatorTest,
GenericTestRunner,
TensorSpec,
TestCase,
is_broadcast
)
# ============================================================================== # ==============================================================================
# Operator-specific configuration # Operator-specific configuration
......
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