Skip to content

Fix shape for exclusive cumulative sum#63

Closed
li-plus wants to merge 1 commit intoScalingIntelligence:mainfrom
li-plus:fix-ex-cumsum
Closed

Fix shape for exclusive cumulative sum#63
li-plus wants to merge 1 commit intoScalingIntelligence:mainfrom
li-plus:fix-ex-cumsum

Conversation

@li-plus
Copy link
Copy Markdown

@li-plus li-plus commented Sep 1, 2025

The current implementation of exclusive cumsum zero-pads the input at dim 1 and incorrectly slice the input along dim 0. For input with shape [32768, 32768], the output will be [32767, 32769], which is wrong semantically. This PR fixed this problem using narrow api to slice the tensor at the correct dim.

@simonguozirui
Copy link
Copy Markdown
Collaborator

ah thanks for catching and fixing this (also highlighted)! @bkal01 and I put in a fix #109, the problem shall be updated now. Thank you for your contribution!

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