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
726eacf8
Unverified
Commit
726eacf8
authored
Dec 12, 2025
by
thatPepe
Committed by
GitHub
Dec 12, 2025
Browse files
Merge pull request #760 from InfiniTensor/issue/759
issue/759 - list input adjustments
parents
bbf18d2c
0fe566a0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
test/infinicore/framework/base.py
test/infinicore/framework/base.py
+9
-2
No files found.
test/infinicore/framework/base.py
View file @
726eacf8
...
...
@@ -355,7 +355,11 @@ class BaseOperatorTest(ABC):
inp
,
comparison_target
==
i
)
infini_inputs
.
append
(
infini_list
)
cloned_tensors
.
append
(
cloned_list
)
# assuming no input lists are operated inplace
if
len
(
cloned_list
)
>
0
:
raise
Exception
(
"Unconsidered case: inplace operation on input list"
)
else
:
infini_inputs
.
append
(
inp
)
...
...
@@ -376,6 +380,9 @@ class BaseOperatorTest(ABC):
infini_list
,
cloned_list
=
self
.
prepare_infinicore_list
(
value
,
key
==
"out"
)
if
key
==
"out"
and
len
(
cloned_list
)
>
0
:
# not expected to reach here until an operator supports inplace on list output
# torch.broadcast_tensors returns a list of tensors but doesn't require an out kwarg.
cloned_tensors
.
append
(
cloned_list
)
infini_kwargs
[
key
]
=
infini_list
else
:
...
...
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