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/isfinite.py
test/infinicore/ops/isfinite.py
+1
-1
test/infinicore/ops/isin.py
test/infinicore/ops/isin.py
+1
-1
test/infinicore/ops/isneginf.py
test/infinicore/ops/isneginf.py
+1
-1
test/infinicore/ops/isposinf.py
test/infinicore/ops/isposinf.py
+1
-1
test/infinicore/ops/kl_div.py
test/infinicore/ops/kl_div.py
+1
-1
test/infinicore/ops/kron.py
test/infinicore/ops/kron.py
+1
-1
test/infinicore/ops/kthvalue.py
test/infinicore/ops/kthvalue.py
+1
-1
test/infinicore/ops/kv_caching.py
test/infinicore/ops/kv_caching.py
+1
-1
test/infinicore/ops/l1_loss.py
test/infinicore/ops/l1_loss.py
+1
-1
test/infinicore/ops/ldexp.py
test/infinicore/ops/ldexp.py
+1
-1
test/infinicore/ops/leaky_relu.py
test/infinicore/ops/leaky_relu.py
+1
-1
test/infinicore/ops/lerp.py
test/infinicore/ops/lerp.py
+1
-1
test/infinicore/ops/linear.py
test/infinicore/ops/linear.py
+1
-2
test/infinicore/ops/local_response_norm.py
test/infinicore/ops/local_response_norm.py
+1
-1
test/infinicore/ops/log.py
test/infinicore/ops/log.py
+1
-1
test/infinicore/ops/log10.py
test/infinicore/ops/log10.py
+1
-1
test/infinicore/ops/log1p.py
test/infinicore/ops/log1p.py
+1
-1
test/infinicore/ops/log2.py
test/infinicore/ops/log2.py
+1
-1
test/infinicore/ops/log_softmax.py
test/infinicore/ops/log_softmax.py
+1
-1
test/infinicore/ops/logaddexp.py
test/infinicore/ops/logaddexp.py
+1
-1
No files found.
test/infinicore/ops/isfinite.py
View file @
bd0c922a
...
...
@@ -3,8 +3,8 @@ import os
sys
.
path
.
insert
(
0
,
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
".."
))
import
torch
import
infinicore
import
torch
from
framework
import
(
BaseOperatorTest
,
TensorSpec
,
...
...
test/infinicore/ops/isin.py
View file @
bd0c922a
...
...
@@ -3,8 +3,8 @@ import os
sys
.
path
.
insert
(
0
,
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
".."
))
import
torch
import
infinicore
import
torch
from
framework
import
(
BaseOperatorTest
,
TensorSpec
,
...
...
test/infinicore/ops/isneginf.py
View file @
bd0c922a
...
...
@@ -3,8 +3,8 @@ import os
sys
.
path
.
insert
(
0
,
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
".."
))
import
torch
import
infinicore
import
torch
from
framework
import
(
BaseOperatorTest
,
TensorSpec
,
...
...
test/infinicore/ops/isposinf.py
View file @
bd0c922a
...
...
@@ -3,8 +3,8 @@ import os
sys
.
path
.
insert
(
0
,
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
".."
))
import
torch
import
infinicore
import
torch
from
framework
import
(
BaseOperatorTest
,
TensorSpec
,
...
...
test/infinicore/ops/kl_div.py
View file @
bd0c922a
...
...
@@ -3,8 +3,8 @@ import os
sys
.
path
.
insert
(
0
,
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
".."
))
import
torch
import
infinicore
import
torch
from
framework
import
BaseOperatorTest
,
TensorSpec
,
TestCase
,
GenericTestRunner
# Test cases format: (input_shape, input_strides_or_None, reduction_or_None, log_target_bool_or_None)
...
...
test/infinicore/ops/kron.py
View file @
bd0c922a
...
...
@@ -3,8 +3,8 @@ import os
sys
.
path
.
insert
(
0
,
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
".."
))
import
torch
import
infinicore
import
torch
from
framework
import
BaseOperatorTest
,
TensorSpec
,
TestCase
,
GenericTestRunner
# Test cases format: (a_shape, b_shape, a_strides_or_None, b_strides_or_None)
...
...
test/infinicore/ops/kthvalue.py
View file @
bd0c922a
...
...
@@ -3,8 +3,8 @@ import os
sys
.
path
.
insert
(
0
,
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
".."
))
import
torch
import
infinicore
import
torch
from
framework
import
(
BaseOperatorTest
,
TensorSpec
,
...
...
test/infinicore/ops/kv_caching.py
View file @
bd0c922a
...
...
@@ -3,8 +3,8 @@ import os
sys
.
path
.
insert
(
0
,
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
".."
))
import
torch
import
infinicore
import
torch
from
framework
import
(
BaseOperatorTest
,
TensorSpec
,
...
...
test/infinicore/ops/l1_loss.py
View file @
bd0c922a
...
...
@@ -3,8 +3,8 @@ import os
sys
.
path
.
insert
(
0
,
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
".."
))
import
torch
import
infinicore
import
torch
from
framework
import
BaseOperatorTest
,
TensorSpec
,
TestCase
,
GenericTestRunner
# Test cases format: (input_shape, target_shape, input_strides_or_None, reduction_or_None)
...
...
test/infinicore/ops/ldexp.py
View file @
bd0c922a
...
...
@@ -3,8 +3,8 @@ import os
sys
.
path
.
insert
(
0
,
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
".."
))
import
torch
import
infinicore
import
torch
from
framework
import
BaseOperatorTest
,
TensorSpec
,
TestCase
,
GenericTestRunner
# ldexp(input, other) computes input * (2**other)
...
...
test/infinicore/ops/leaky_relu.py
View file @
bd0c922a
...
...
@@ -3,8 +3,8 @@ import os
sys
.
path
.
insert
(
0
,
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
".."
))
import
torch
import
infinicore
import
torch
from
framework
import
(
BaseOperatorTest
,
TensorSpec
,
...
...
test/infinicore/ops/lerp.py
View file @
bd0c922a
...
...
@@ -3,8 +3,8 @@ import os
sys
.
path
.
insert
(
0
,
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
".."
))
import
torch
import
infinicore
import
torch
from
framework
import
(
BaseOperatorTest
,
TensorSpec
,
...
...
test/infinicore/ops/linear.py
View file @
bd0c922a
...
...
@@ -3,6 +3,7 @@ import sys
sys
.
path
.
insert
(
0
,
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
".."
))
import
infinicore
import
torch
from
framework
import
(
BaseOperatorTest
,
...
...
@@ -12,8 +13,6 @@ from framework import (
is_broadcast
,
)
import
infinicore
# ==============================================================================
# Operator-specific configuration
# ==============================================================================
...
...
test/infinicore/ops/local_response_norm.py
View file @
bd0c922a
...
...
@@ -3,8 +3,8 @@ import os
sys
.
path
.
insert
(
0
,
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
".."
))
import
torch
import
infinicore
import
torch
from
framework
import
BaseOperatorTest
,
TensorSpec
,
TestCase
,
GenericTestRunner
# Test cases format: (input_shape, input_strides_or_None, size, alpha_or_None, beta_or_None, k_or_None)
...
...
test/infinicore/ops/log.py
View file @
bd0c922a
...
...
@@ -3,8 +3,8 @@ import os
sys
.
path
.
insert
(
0
,
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
".."
))
import
torch
import
infinicore
import
torch
from
framework
import
(
BaseOperatorTest
,
TensorSpec
,
...
...
test/infinicore/ops/log10.py
View file @
bd0c922a
...
...
@@ -3,8 +3,8 @@ import os
sys
.
path
.
insert
(
0
,
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
".."
))
import
torch
import
infinicore
import
torch
from
framework
import
(
BaseOperatorTest
,
TensorSpec
,
...
...
test/infinicore/ops/log1p.py
View file @
bd0c922a
...
...
@@ -3,8 +3,8 @@ import os
sys
.
path
.
insert
(
0
,
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
".."
))
import
torch
import
infinicore
import
torch
from
framework
import
(
BaseOperatorTest
,
TensorSpec
,
...
...
test/infinicore/ops/log2.py
View file @
bd0c922a
...
...
@@ -3,8 +3,8 @@ import os
sys
.
path
.
insert
(
0
,
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
".."
))
import
torch
import
infinicore
import
torch
from
framework
import
(
BaseOperatorTest
,
TensorSpec
,
...
...
test/infinicore/ops/log_softmax.py
View file @
bd0c922a
...
...
@@ -3,8 +3,8 @@ import os
sys
.
path
.
insert
(
0
,
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
".."
))
import
torch
import
infinicore
import
torch
from
framework
import
(
BaseOperatorTest
,
TensorSpec
,
...
...
test/infinicore/ops/logaddexp.py
View file @
bd0c922a
...
...
@@ -3,8 +3,8 @@ import os
sys
.
path
.
insert
(
0
,
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
".."
))
import
torch
import
infinicore
import
torch
from
framework
import
(
BaseOperatorTest
,
TensorSpec
,
...
...
Prev
1
…
4
5
6
7
8
9
10
11
12
…
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