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
2966666c
You need to sign in or sign up before continuing.
Commit
2966666c
authored
Mar 14, 2025
by
YdrMaster
Committed by
PanZezhong
Mar 14, 2025
Browse files
issue/68/fix: 改正 rearrange
Signed-off-by:
YdrMaster
<
ydrml@hotmail.com
>
parent
3ddeae7d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
src/utils/rearrange.cc
src/utils/rearrange.cc
+1
-0
No files found.
src/utils/rearrange.cc
View file @
2966666c
...
...
@@ -46,6 +46,7 @@ std::optional<RearrangeMeta> RearrangeMeta::create(
}
return
std
::
abs
(
a
.
dst
)
>
std
::
abs
(
b
.
dst
);
});
ndim
=
dims
.
size
();
// # 合并连续维度
// ## 合并末尾连续维度到 unit
for
(
auto
it
=
dims
.
rbegin
();
it
!=
dims
.
rend
();
++
it
)
{
...
...
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