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