[MPS][BE] Extend torch.special. to integer dtypes#155002
Closed
malfet wants to merge 3 commits intogh/malfet/373/basefrom
Closed
[MPS][BE] Extend torch.special. to integer dtypes#155002malfet wants to merge 3 commits intogh/malfet/373/basefrom
malfet wants to merge 3 commits intogh/malfet/373/basefrom
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/155002
Note: Links to docs will display an error until the docs builds have been completed. ⏳ No Failures, 20 PendingAs of commit 7c32ff8 with merge base 0fab322 ( 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. |
Skylion007
approved these changes
Jun 3, 2025
dcci
approved these changes
Jun 3, 2025
Contributor
Author
|
@pytorchbot merge -f "Lint + MPS are green" |
Collaborator
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 the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
pytorchmergebot
pushed a commit
to Eliasj42/pytorch
that referenced
this pull request
Jun 3, 2025
By changing the functor to looks as follows
```metal
struct 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 Request resolved: pytorch#155002
Approved by: https://github.com/Skylion007, https://github.com/dcci
ghstack dependencies: pytorch#154936
pytorchmergebot
pushed a commit
that referenced
this pull request
Jun 4, 2025
That creates _kernel_mps function that takes iterator and calls stub for it Pull Request resolved: #155081 Approved by: https://github.com/dcci ghstack dependencies: #154936, #155002
pytorchmergebot
pushed a commit
that referenced
this pull request
Jun 4, 2025
Fixes #154895 Pull Request resolved: #155080 Approved by: https://github.com/dcci, https://github.com/cyyever ghstack dependencies: #154936, #155002, #155081
iupaikov-amd
pushed a commit
to ROCm/pytorch
that referenced
this pull request
Jun 4, 2025
By changing the functor to looks as follows
```metal
struct 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 Request resolved: pytorch#155002
Approved by: https://github.com/Skylion007, https://github.com/dcci
ghstack dependencies: pytorch#154936
iupaikov-amd
pushed a commit
to ROCm/pytorch
that referenced
this pull request
Jun 4, 2025
That creates _kernel_mps function that takes iterator and calls stub for it Pull Request resolved: pytorch#155081 Approved by: https://github.com/dcci ghstack dependencies: pytorch#154936, pytorch#155002
iupaikov-amd
pushed a commit
to ROCm/pytorch
that referenced
this pull request
Jun 4, 2025
Fixes pytorch#154895 Pull Request resolved: pytorch#155080 Approved by: https://github.com/dcci, https://github.com/cyyever ghstack dependencies: pytorch#154936, pytorch#155002, pytorch#155081
angelayi
pushed a commit
to angelayi/pytorch
that referenced
this pull request
Jun 5, 2025
By changing the functor to looks as follows
```metal
struct 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 Request resolved: pytorch#155002
Approved by: https://github.com/Skylion007, https://github.com/dcci
ghstack dependencies: pytorch#154936
angelayi
pushed a commit
to angelayi/pytorch
that referenced
this pull request
Jun 5, 2025
That creates _kernel_mps function that takes iterator and calls stub for it Pull Request resolved: pytorch#155081 Approved by: https://github.com/dcci ghstack dependencies: pytorch#154936, pytorch#155002
angelayi
pushed a commit
to angelayi/pytorch
that referenced
this pull request
Jun 5, 2025
Fixes pytorch#154895 Pull Request resolved: pytorch#155080 Approved by: https://github.com/dcci, https://github.com/cyyever ghstack dependencies: pytorch#154936, pytorch#155002, pytorch#155081
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Stack from ghstack (oldest at bottom):
By changing the functor to looks as follows
Repeat the same for
zeta,chebyshev_polynomial_[tuvw]_functorandhermite_polynomial_h[e]_functor