Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jerrrrry
infinicore
Commits
bd0c922a
Commit
bd0c922a
authored
Feb 10, 2026
by
zhangyue
Browse files
issue/1008: mv "import infinicore" ahead of "import" torch
parent
5675a4af
Changes
274
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
20 additions
and
21 deletions
+20
-21
test/infinicore/ops/dot.py
test/infinicore/ops/dot.py
+1
-1
test/infinicore/ops/dropout1d.py
test/infinicore/ops/dropout1d.py
+1
-1
test/infinicore/ops/dropout2d.py
test/infinicore/ops/dropout2d.py
+1
-1
test/infinicore/ops/dropout3d.py
test/infinicore/ops/dropout3d.py
+1
-1
test/infinicore/ops/elu.py
test/infinicore/ops/elu.py
+1
-1
test/infinicore/ops/embedding.py
test/infinicore/ops/embedding.py
+1
-2
test/infinicore/ops/empty.py
test/infinicore/ops/empty.py
+1
-1
test/infinicore/ops/empty_like.py
test/infinicore/ops/empty_like.py
+1
-1
test/infinicore/ops/empty_strided.py
test/infinicore/ops/empty_strided.py
+1
-1
test/infinicore/ops/equal.py
test/infinicore/ops/equal.py
+1
-1
test/infinicore/ops/erf.py
test/infinicore/ops/erf.py
+1
-1
test/infinicore/ops/erfc.py
test/infinicore/ops/erfc.py
+1
-1
test/infinicore/ops/erfinv.py
test/infinicore/ops/erfinv.py
+1
-1
test/infinicore/ops/exp2.py
test/infinicore/ops/exp2.py
+1
-1
test/infinicore/ops/expm1.py
test/infinicore/ops/expm1.py
+1
-1
test/infinicore/ops/feature_alpha_dropout.py
test/infinicore/ops/feature_alpha_dropout.py
+1
-1
test/infinicore/ops/flash_attention.py
test/infinicore/ops/flash_attention.py
+1
-1
test/infinicore/ops/flip.py
test/infinicore/ops/flip.py
+1
-1
test/infinicore/ops/fliplr.py
test/infinicore/ops/fliplr.py
+1
-1
test/infinicore/ops/flipud.py
test/infinicore/ops/flipud.py
+1
-1
No files found.
test/infinicore/ops/dot.py
View file @
bd0c922a
...
@@ -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)
...
...
test/infinicore/ops/dropout1d.py
View file @
bd0c922a
...
@@ -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
,
...
...
test/infinicore/ops/dropout2d.py
View file @
bd0c922a
...
@@ -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
,
...
...
test/infinicore/ops/dropout3d.py
View file @
bd0c922a
...
@@ -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
,
...
...
test/infinicore/ops/elu.py
View file @
bd0c922a
...
@@ -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
,
...
...
test/infinicore/ops/embedding.py
View file @
bd0c922a
...
@@ -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
# ==============================================================================
# ==============================================================================
...
...
test/infinicore/ops/empty.py
View file @
bd0c922a
...
@@ -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
...
...
test/infinicore/ops/empty_like.py
View file @
bd0c922a
...
@@ -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
...
...
test/infinicore/ops/empty_strided.py
View file @
bd0c922a
...
@@ -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
...
...
test/infinicore/ops/equal.py
View file @
bd0c922a
...
@@ -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
,
...
...
test/infinicore/ops/erf.py
View file @
bd0c922a
...
@@ -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
,
...
...
test/infinicore/ops/erfc.py
View file @
bd0c922a
...
@@ -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
,
...
...
test/infinicore/ops/erfinv.py
View file @
bd0c922a
...
@@ -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
,
...
...
test/infinicore/ops/exp2.py
View file @
bd0c922a
...
@@ -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
,
...
...
test/infinicore/ops/expm1.py
View file @
bd0c922a
...
@@ -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
,
...
...
test/infinicore/ops/feature_alpha_dropout.py
View file @
bd0c922a
...
@@ -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
,
...
...
test/infinicore/ops/flash_attention.py
View file @
bd0c922a
...
@@ -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
,
...
...
test/infinicore/ops/flip.py
View file @
bd0c922a
...
@@ -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
,
...
...
test/infinicore/ops/fliplr.py
View file @
bd0c922a
...
@@ -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
,
...
...
test/infinicore/ops/flipud.py
View file @
bd0c922a
...
@@ -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
,
...
...
Prev
1
2
3
4
5
6
7
8
9
…
14
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment