feat:add triton op and cpp wrapper for copy_ and to_copy - #1294
Merged
Conversation
wlxjhyf
force-pushed
the
ops
branch
2 times, most recently
from
December 28, 2025 14:58
e6fefef to
4a41f0a
Compare
Contributor
|
@wlxjhyf Please check your CLA status. Signing the CLA is required before your PR is considered as a merge candidate. |
kiddyjinjin
reviewed
Dec 29, 2025
| return out; | ||
| } | ||
|
|
||
| void copy_(const at::Tensor& dst, const at::Tensor& src) { |
Collaborator
There was a problem hiding this comment.
the schema is Tensor& copy_ (Tensor & self, const Tensor& src, bool non_blocking)
Collaborator
Author
There was a problem hiding this comment.
copy_ and to_copy are implemented to match PyTorch’s operator schemas.
wlxjhyf
force-pushed
the
ops
branch
6 times, most recently
from
December 30, 2025 05:33
60ed2ff to
792d56b
Compare
kiddyjinjin
approved these changes
Dec 30, 2025
nicelynice
pushed a commit
to nicelynice/FlagGems
that referenced
this pull request
Feb 24, 2026
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.
PR Category
Op
Type of Change
New Feature
Description
add cpp wrapper for copy_ and to_copy
Issue
Progress
Performance