-
Notifications
You must be signed in to change notification settings - Fork 311
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix equality check for floats #2507
Conversation
This pull request was exported from Phabricator. Differential Revision: D58289519 |
This pull request was exported from Phabricator. Differential Revision: D58289519 |
Summary: Pull Request resolved: facebook#2507 `same_elements()` wasn't working for `float('nan')`, and it wasn't treating floats with `np.is_close()` like in `object_attribute_dicts_find_unequal_fields()`. Also, `same_elements` was generally broken. Example: {F1676730235} Differential Revision: D58289519
4fa4ff8
to
166a950
Compare
This pull request was exported from Phabricator. Differential Revision: D58289519 |
Summary: Pull Request resolved: facebook#2507 `same_elements()` wasn't working for `float('nan')`, and it wasn't treating floats with `np.is_close()` like in `object_attribute_dicts_find_unequal_fields()`. Also, `same_elements` was generally broken. Example: {F1676730235} Differential Revision: D58289519
166a950
to
e8dcf8b
Compare
This pull request was exported from Phabricator. Differential Revision: D58289519 |
Summary: Pull Request resolved: facebook#2507 `same_elements()` wasn't working for `float('nan')`, and it wasn't treating floats with `np.is_close()` like in `object_attribute_dicts_find_unequal_fields()`. Also, `same_elements` was generally broken. Example: {F1676730235} Differential Revision: D58289519
e8dcf8b
to
d99565c
Compare
This pull request was exported from Phabricator. Differential Revision: D58289519 |
Summary: Pull Request resolved: facebook#2507 `same_elements()` wasn't working for `float('nan')`, and it wasn't treating floats with `np.is_close()` like in `object_attribute_dicts_find_unequal_fields()`. Also, `same_elements` was generally broken. Example: {F1676730235} Differential Revision: D58289519
d99565c
to
703f0e3
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2507 +/- ##
=======================================
Coverage 95.28% 95.28%
=======================================
Files 485 485
Lines 47406 47411 +5
=======================================
+ Hits 45171 45176 +5
Misses 2235 2235 ☔ View full report in Codecov by Sentry. |
This pull request was exported from Phabricator. Differential Revision: D58289519 |
Summary: Pull Request resolved: facebook#2507 `same_elements()` wasn't working for `float('nan')`, and it wasn't treating floats with `np.is_close()` like in `object_attribute_dicts_find_unequal_fields()`. Also, `same_elements` was generally broken. Example: {F1676730235} Differential Revision: D58289519
703f0e3
to
31a9366
Compare
This pull request was exported from Phabricator. Differential Revision: D58289519 |
Summary: Pull Request resolved: facebook#2507 `same_elements()` wasn't working for `float('nan')`, and it wasn't treating floats with `np.is_close()` like in `object_attribute_dicts_find_unequal_fields()`. Also, `same_elements` was generally broken. Example: {F1676730235} Differential Revision: D58289519
31a9366
to
3663ab5
Compare
Summary: Pull Request resolved: facebook#2507 `same_elements()` wasn't working for `float('nan')`, and it wasn't treating floats with `np.is_close()` like in `object_attribute_dicts_find_unequal_fields()`. Also, `same_elements` was generally broken. Example: {F1676730235} Reviewed By: saitcakmak Differential Revision: D58289519
This pull request was exported from Phabricator. Differential Revision: D58289519 |
3663ab5
to
5e7357e
Compare
This pull request has been merged in 932746d. |
Summary:
same_elements()
wasn't working forfloat('nan')
, and it wasn't treating floats withnp.is_close()
like inobject_attribute_dicts_find_unequal_fields()
.Also,
same_elements
was generally broken. Example:{F1676730235}
Differential Revision: D58289519