Skip to content

[Torch] Make torch remainder use floor div#4440

Open
samjin-aws wants to merge 1 commit intollvm:mainfrom
samjin-aws:samjin-aws/remainder-floor-div
Open

[Torch] Make torch remainder use floor div#4440
samjin-aws wants to merge 1 commit intollvm:mainfrom
samjin-aws:samjin-aws/remainder-floor-div

Conversation

@samjin-aws
Copy link

This change updates the torch remainder operation to use floor division semantics, ensuring correct behavior consistent with PyTorch's modulo operation which uses floored division rather than truncated division.

This change updates the torch remainder operation to use floor division
semantics, ensuring correct behavior consistent with PyTorch's modulo
operation which uses floored division rather than truncated division.

Signed-off-by: Sam Jin <yjinamzn@amazon.com>
@samjin-aws samjin-aws marked this pull request as ready for review January 23, 2026 05:12
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.

1 participant