-
Notifications
You must be signed in to change notification settings - Fork 25.6k
[primTorch] Rename is_finite->isfinite #78211
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
Conversation
🔗 Helpful links
✅ No Failures (0 Pending)As of commit b8ed4b6 (more details on the Dr. CI page): Expand to see more💚 💚 Looks good so far! There are no failures yet. 💚 💚 This comment was automatically generated by Dr. CI (expand for details).Please report bugs/suggestions to the (internal) Dr. CI Users group. |
Is there some unit test I need to pay attention to? |
No this is perfect, but because of #78058 this has to add an entry like these: pytorch/test/forward_backward_compatibility/check_forward_backward_compatibility.py Line 146 in 3b70a7c
I'm going to update that test (or this PR can update it, both good) to stop checking BC/FC for ops in the "prims" namespace. |
I can try update the test, it should not be hard. |
Also fixes #78058 |
backwards_compat is passing now |
("prims::empty_like", datetime.date(9999, 1, 1)), | ||
("prims::select", datetime.date(9999, 1, 1)), | ||
("prims::concatenate", datetime.date(9999, 1, 1)), | ||
("prims::.*", datetime.date(9999, 1, 1)), |
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.
Neat
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.
Cool!
@pytorchbot merge this |
Hey @zasdfgbnm. |
Similarly |
Yes, but it's better to remove is_infinite from prims, because it can be composed from infinite and isnan |
Summary: `isfinite` sounds like a better name, because PyTorch, C++, numpy all have this name instead of `is_finite` Pull Request resolved: #78211 Approved by: https://github.com/ngimel, https://github.com/mruberry Test Plan: contbuild & OSS CI, see https://hud.pytorch.org/commit/pytorch/pytorch/5ecd30e857aad668c87c5bf6f03ff7dfcec42ec5 Reviewed By: seemethere Differential Revision: D36783145 Pulled By: seemethere fbshipit-source-id: f21725bd34392db3c9108ea4a9e223d0c0c53b6e
isfinite
sounds like a better name, because PyTorch, C++, numpy all have this name instead ofis_finite