This repository has been archived by the owner on Nov 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
[MXNET-1426] Fix the wrong result of sum, mean, argmin, argmax when inputs contain inf or nan #16234
Merged
Merged
[MXNET-1426] Fix the wrong result of sum, mean, argmin, argmax when inputs contain inf or nan #16234
Changes from 15 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
1245499
fix meansum nan
wkcn 100d9c1
remove print in testcase
wkcn 4aa2dc6
update to avoid assignment
wkcn 1d557e0
update
wkcn 1d79447
fix argmin and argmax, update julia unittest
wkcn 9b744d5
update argmin/argmax docs in julia bindings
wkcn 66280f1
debug
wkcn 848c57b
update
wkcn 4de6bac
update test
wkcn 9c3a72c
fix sum merge
wkcn 9f2e4fc
update testcase
wkcn 714951c
update including sign
wkcn 6666bd6
fix allclose
wkcn dca0c2a
ci
wkcn acf48f4
Merge branch 'master' into fix_meansum_nan
wkcn 9183cb3
use constants
wkcn a0c81ec
Merge branch 'fix_meansum_nan' of github.com:wkcn/incubator-mxnet int…
wkcn a5a9fb4
Merge branch 'master' into fix_meansum_nan
wkcn 3b51b79
fix build for isinf and isnan
wkcn c8761ad
ci
wkcn 3a2f062
ci
wkcn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you turn these magic values into constants with documentation? While I get 0x7ffff, 0x7c00 for example, looks quite arbitrary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @marcoabreu , I add two constants
MSHADOW_HALF_SIGN_BIT
andMSHADOW_HALF_EXPONENT_BITS
in 3rdparty/mshadow/mshadow/half.h, and replace these two magic values.