Repository navigation
[Stream] Fold transferred stream clones into minimal slices before loads - #24740
Merged
Merged
Conversation
LekkalaSravya3
requested review from
MaheshRavishankar,
benvanik and
hanhanW
as code owners
July 21, 2026 18:24
LekkalaSravya3
force-pushed
the
stream_load
branch
2 times, most recently
from
July 21, 2026 18:32
7249f8a to
f39016e
Compare
Signed-off-by: LekkalaSravya3 <[email protected]>
LekkalaSravya3
force-pushed
the
stream_load
branch
from
July 21, 2026 18:39
f39016e to
2031bdc
Compare
jschuhmacher
self-requested a review
July 23, 2026 08:27
Contributor
|
Thanks for the PR @LekkalaSravya3 |
jschuhmacher
requested changes
Jul 23, 2026
Signed-off-by: LekkalaSravya3 <[email protected]>
jschuhmacher
approved these changes
Jul 29, 2026
jschuhmacher
left a comment
Contributor
There was a problem hiding this comment.
Thanks @LekkalaSravya3!
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.
This PR Extends clone folding for
stream.async.loadandstream.tensor.loadtohandle the staging transfer introduced before loads.
Both stream.async.load and stream.tensor.load require their source to be
a staging resource, while stream.async.clone and stream.tensor.clone
always produce non-staging resources. As a result, loads from cloned
resources are always preceded by a stream.async.transfer.
This change matches the pattern:
clone -> transfer -> loadand rewrites it to:
slice -> transfer -> loadby creating a minimal slice of the original source, transferring only
that slice to staging, and loading from it. This avoids cloning and
transferring the entire resource when only a single value is accessed,
while preserving the required staging semantics.