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
ad4a2be2
Commit
ad4a2be2
authored
Aug 27, 2025
by
MaYuhang
Browse files
issue/406: 修复 isMergable 的 stride 检查逻辑
parent
cb06c721
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/infiniop/tensor_descriptor.cc
src/infiniop/tensor_descriptor.cc
+1
-1
No files found.
src/infiniop/tensor_descriptor.cc
View file @
ad4a2be2
...
...
@@ -102,7 +102,7 @@ bool InfiniopTensorDescriptor::isMergable(size_t dim_start, size_t dim_end) cons
auto
ndim_
=
shape_
.
size
();
for
(
size_t
i
=
1
;
i
<
ndim_
;
i
++
)
{
if
(
stride
(
i
-
1
)
!=
static_cast
<
ptrdiff_t
>
(
dim
(
i
)
)
*
stride
(
i
)
)
{
if
(
stride
s_
[
i
-
1
]
!=
static_cast
<
ptrdiff_t
>
(
shape_
[
i
]
)
*
stride
s_
[
i
]
)
{
return
false
;
}
}
...
...
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