Skip to content

Clarify that when the divisor in div is zero and the dividend is integral, the behavior is undefined.#25968

Closed
xuhdev wants to merge 1 commit intopytorch:masterfrom
xuhdev:div-int-zero
Closed

Clarify that when the divisor in div is zero and the dividend is integral, the behavior is undefined.#25968
xuhdev wants to merge 1 commit intopytorch:masterfrom
xuhdev:div-int-zero

Conversation

@xuhdev
Copy link
Collaborator

@xuhdev xuhdev commented Sep 11, 2019

Currently when an integral tensor is divided by zero, it emits a
"floating point exception" (which can be different from system to
system). Clarify in the document that nothing would be guaranteed under
this circumstance.

@pytorchbot pytorchbot added the module: docs Related to our documentation, both in docs/ and docblocks label Sep 11, 2019
@xuhdev xuhdev requested review from gchanan, izdeby and yf225 and removed request for izdeby and yf225 September 11, 2019 00:21
Copy link
Contributor

@gchanan gchanan left a comment

Choose a reason for hiding this comment

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

On the current master documentation, input and out don't display correct -- can you fix that if possible?

@xuhdev
Copy link
Collaborator Author

xuhdev commented Sep 12, 2019

On the current master documentation, input and out don't display correct -- can you fix that if possible?

Do you mean replacing :attr`input` with ``input``?

@gchanan
Copy link
Contributor

gchanan commented Sep 17, 2019

@nairbv can you take over reviewing this?

@gchanan gchanan requested a review from nairbv September 17, 2019 19:23
@Lmy0217 Lmy0217 mentioned this pull request Sep 20, 2019
@yf225 yf225 added the triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module label Sep 25, 2019
@xuhdev xuhdev force-pushed the div-int-zero branch 2 times, most recently from 382f54a to 9c1dbdd Compare October 11, 2019 17:57
…gral, the behavior is undefined.

Currently when an integral tensor is divided by zero, it emits a
"floating point exception" (which can be different from system to
system). Clarify in the document that nothing would be guaranteed under
this circumstance.
@xuhdev
Copy link
Collaborator Author

xuhdev commented Oct 11, 2019

@pytorchbot merge this please

@pytorchbot pytorchbot added the merge-this-please Was marked for merge with @pytorchbot merge this please label Oct 11, 2019
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 is landing 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 4da6822.

thiagocrepaldi pushed a commit to thiagocrepaldi/pytorch that referenced this pull request Feb 4, 2020
…gral, the behavior is undefined. (pytorch#25968)

Summary:
Currently when an integral tensor is divided by zero, it emits a
"floating point exception" (which can be different from system to
system). Clarify in the document that nothing would be guaranteed under
this circumstance.
Pull Request resolved: pytorch#25968

Differential Revision: D17888097

Pulled By: ezyang

fbshipit-source-id: 7c3ce3ac4080479d637cc2710b6aa3ae7e42431d
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 module: docs Related to our documentation, both in docs/ and docblocks open source triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants