Migrate kernels to use AT_DISPATCH_V2 - #4446
Open
pbielak wants to merge 1 commit into
Open
Conversation
pbielak
force-pushed
the
migrate-ops-to-dispatch-v2
branch
2 times, most recently
from
July 24, 2026 15:39
3bae01f to
2d14f53
Compare
BBBela
approved these changes
Jul 27, 2026
BBBela
left a comment
Contributor
There was a problem hiding this comment.
Looks good to me, thanks!
Please just check if the #include <ATen/Dispatch.h> are not unused imports after switching to v2 version.
pbielak
force-pushed
the
migrate-ops-to-dispatch-v2
branch
from
July 27, 2026 13:53
2d14f53 to
2ac6c54
Compare
Convert legacy `AT_DISPATCH_FLOATING_TYPES_AND2` and `AT_DISPATCH_ALL_TYPES_AND3` usages to `AT_DISPATCH_V2` in: - src/ATen/native/xpu/sycl/FusedAdamKernels.cpp - src/ATen/native/xpu/sycl/FusedAdamAmsgradKernels.cpp - src/ATen/native/xpu/sycl/FusedAdamWKernels.cpp - src/ATen/native/xpu/sycl/FusedAdamWAmsgradKernels.cpp - src/ATen/native/xpu/sycl/Embedding.cpp - src/ATen/native/nested/xpu/sycl/NestedTensorTransformerFunctionKernels.cpp These kernels / files are already using the new dispatch in upstream.
pbielak
force-pushed
the
migrate-ops-to-dispatch-v2
branch
from
July 27, 2026 13:54
2ac6c54 to
17a658c
Compare
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.
Convert legacy
AT_DISPATCH_FLOATING_TYPES_AND2andAT_DISPATCH_ALL_TYPES_AND3usages toAT_DISPATCH_V2in:These kernels / files are already using the new dispatch in upstream.