Skip to content

Conversation

@xuhdev
Copy link
Collaborator

@xuhdev xuhdev commented Jul 23, 2020

Currently torch.tensor(1, dtype=torch.int).fmod(0) crashes (floating point exception).

This PR should fix this issue.

Copy link
Collaborator

@peterbell10 peterbell10 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple nits but overall looks good. The scalar kernel must have been overlooked in #38919.

@xuhdev xuhdev force-pushed the fmod-zero branch 2 times, most recently from 6e19bc6 to 24c40f2 Compare July 23, 2020 22:39
Currently `torch.tensor(1, dtype=torch.int).fmod(0)` crashes (floating point exception).
This PR should fix this issues.
@dr-ci
Copy link

dr-ci bot commented Jul 23, 2020

💊 CI failures summary and remediations

As of commit 95a921a (more details on the Dr. CI page):


💚 💚 Looks good so far! There are no failures yet. 💚 💚


This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.

Please report bugs/suggestions on the GitHub issue tracker or post in the (internal) Dr. CI Users group.

See how this bot performed.

This comment has been revised 1 time.

@xuhdev
Copy link
Collaborator Author

xuhdev commented Jul 24, 2020

@peterbell10 I've updated. Is this ready to merge?

Copy link
Collaborator

@peterbell10 peterbell10 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@xuhdev
Copy link
Collaborator Author

xuhdev commented Jul 24, 2020

@pytorchbot merge this please

@pytorchbot pytorchbot added the merge-this-please Was marked for merge with @pytorchbot merge this please label Jul 24, 2020
Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ezyang has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@ezyang merged this pull request in 2de5495.

@xuhdev xuhdev deleted the fmod-zero branch July 29, 2020 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-this-please Was marked for merge with @pytorchbot merge this please Merged open source

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants