Skip to content

Commit

Permalink
fix(kernel):修复transpose info存在的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
bitzyz committed Jan 31, 2024
1 parent 3f5b0ee commit 7db54c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/04kernel/src/attributes/transpose_info.cc
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ namespace refactor::kernel {
}
}
}
if (rank == 0) {
if (rank <= 1) {
dims = {{1, 1}};
blockSize *= blockCount;
blockCount = 1;
Expand Down Expand Up @@ -81,6 +81,7 @@ namespace refactor::kernel {
perm.pop_back();
--rank;
}

// 计算 stride
struct StrideI {
dim_t strideI;
Expand Down

0 comments on commit 7db54c1

Please sign in to comment.