8000 [Im2col] Fix bug when there is no batch dimension by yzhang93 · Pull Request #20711 · iree-org/iree · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[Im2col] Fix bug when there is no batch dimension #20711

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 2, 2025

Conversation

yzhang93
Copy link
Contributor
@yzhang93 yzhang93 commented May 2, 2025

This PR fixes a bug introduced in #20633, that when getBatchPos() is empty, getBatchPos().front() will cause a crash. Move it inside the condition of contiguousAlongB, since this condition guarantees the batch dimension is non-empty.

@yzhang93 yzhang93 requested a review from Max191 May 2, 2025 17:44
Signed-off-by: yzhang93 <zhyuhang88@gmail.com>
@yzhang93 yzhang93 force-pushed the fix_batch_pos_empty branch from f1cc990 to 896d94e Compare May 2, 2025 17:47
@yzhang93 yzhang93 merged commit d355411 into iree-org:main May 2, 2025
42 checks passed
nirvedhmeshram pushed a commit that referenced this pull request May 6, 2025
This PR fixes a bug introduced in
#20633, that when `getBatchPos()`
is empty, `getBatchPos().front()` will cause a crash. Move it inside the
condition of `contiguousAlongB`, since this condition guarantees the
batch dimension is non-empty.

Signed-off-by: yzhang93 <zhyuhang88@gmail.com>
KyleHerndon pushed a commit to KyleHerndon/iree that referenced this pull request May 7, 2025
This PR fixes a bug introduced in
iree-org#20633, that when `getBatchPos()`
is empty, `getBatchPos().front()` will cause a crash. Move it inside the
condition of `contiguousAlongB`, since this condition guarantees the
batch dimension is non-empty.

Signed-off-by: yzhang93 <zhyuhang88@gmail.com>
@yzhang93 yzhang93 deleted the fix_batch_pos_empty branch May 8, 2025 01:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0