- Notifications
You must be signed in to change notification settings - Fork26.3k
[MPS][BE] Extend torch.special. to integer dtypes#155002
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
pytorch-botbot commentedJun 3, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
🔗 Helpful Links🧪 See artifacts and rendered test results athud.pytorch.org/pr/155002
Note: Links to docs will display an error until the docs builds have been completed. ⏳ No Failures, 20 PendingAs of commit7c32ff8 with merge base0fab322 ( UNSTABLE - The following job is marked as unstable, possibly due to flakiness on trunk:This comment was automatically generated by Dr. CI and updates every 15 minutes. |
malfet commentedJun 3, 2025
@pytorchbot merge -f "Lint + MPS are green" |
pytorchmergebot commentedJun 3, 2025
Merge startedYour change will be merged immediately since you used the force (-f) flag,bypassing any CI checks (ETA: 1-5 minutes). Please use Learn more about merging in thewiki. Questions? Feedback? Please reach out to thePyTorch DevX Team |
By changing the functor to looks as follows```metalstruct xlog1py_functor { template <typename T, enable_if_t<is_floating_point_v<T>, bool> = true> inline T operator()(const T a, const T b) { return static_cast<T>(c10::metal::xlog1py(a, b)); } template <typename T, enable_if_t<is_integral_v<T>, bool> = true> inline float operator()(const T a, const T b) { return c10::metal::xlog1py(float(a), float(b)); }};```Repeat the same for `zeta`, `chebyshev_polynomial_[tuvw]_functor` and `hermite_polynomial_h[e]_functor`Pull Requestresolved:pytorch#155002Approved by:https://github.com/Skylion007,https://github.com/dccighstack dependencies:pytorch#154936That creates _kernel_mps function that takes iterator and calls stub foritPull Requestresolved:#155081Approved by:https://github.com/dccighstack dependencies:#154936,#155002
Fixes#154895Pull Requestresolved:#155080Approved by:https://github.com/dcci,https://github.com/cyyeverghstack dependencies:#154936,#155002,#155081
By changing the functor to looks as follows```metalstruct xlog1py_functor { template <typename T, enable_if_t<is_floating_point_v<T>, bool> = true> inline T operator()(const T a, const T b) { return static_cast<T>(c10::metal::xlog1py(a, b)); } template <typename T, enable_if_t<is_integral_v<T>, bool> = true> inline float operator()(const T a, const T b) { return c10::metal::xlog1py(float(a), float(b)); }};```Repeat the same for `zeta`, `chebyshev_polynomial_[tuvw]_functor` and `hermite_polynomial_h[e]_functor`Pull Requestresolved:pytorch#155002Approved by:https://github.com/Skylion007,https://github.com/dccighstack dependencies:pytorch#154936That creates _kernel_mps function that takes iterator and calls stub foritPull Requestresolved:pytorch#155081Approved by:https://github.com/dccighstack dependencies:pytorch#154936,pytorch#155002
Fixespytorch#154895Pull Requestresolved:pytorch#155080Approved by:https://github.com/dcci,https://github.com/cyyeverghstack dependencies:pytorch#154936,pytorch#155002,pytorch#155081
By changing the functor to looks as follows```metalstruct xlog1py_functor { template <typename T, enable_if_t<is_floating_point_v<T>, bool> = true> inline T operator()(const T a, const T b) { return static_cast<T>(c10::metal::xlog1py(a, b)); } template <typename T, enable_if_t<is_integral_v<T>, bool> = true> inline float operator()(const T a, const T b) { return c10::metal::xlog1py(float(a), float(b)); }};```Repeat the same for `zeta`, `chebyshev_polynomial_[tuvw]_functor` and `hermite_polynomial_h[e]_functor`Pull Requestresolved:pytorch#155002Approved by:https://github.com/Skylion007,https://github.com/dccighstack dependencies:pytorch#154936That creates _kernel_mps function that takes iterator and calls stub foritPull Requestresolved:pytorch#155081Approved by:https://github.com/dccighstack dependencies:pytorch#154936,pytorch#155002
Fixespytorch#154895Pull Requestresolved:pytorch#155080Approved by:https://github.com/dcci,https://github.com/cyyeverghstack dependencies:pytorch#154936,pytorch#155002,pytorch#155081
Uh oh!
There was an error while loading.Please reload this page.
Stack fromghstack (oldest at bottom):
By changing the functor to looks as follows
Repeat the same for
zeta,chebyshev_polynomial_[tuvw]_functorandhermite_polynomial_h[e]_functor