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
0fe566a0
Commit
0fe566a0
authored
Dec 12, 2025
by
wooway777
Browse files
issue/759 - list input adjustments
parent
f53b8435
Changes
1
Hide 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 @
0fe566a0
...
...
@@ -353,7 +353,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
)
...
...
@@ -374,7 +378,10 @@ class BaseOperatorTest(ABC):
infini_list
,
cloned_list
=
self
.
prepare_infinicore_list
(
value
,
key
==
"out"
)
cloned_tensors
.
append
(
cloned_list
)
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
:
infini_kwargs
[
key
]
=
value
...
...
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