Repository navigation
Translate flow.tensor.empty to stream.tensor.empty. - #11131
Merged
Merged
Conversation
benvanik
force-pushed
the
benvanik-empty-uninit
branch
from
November 11, 2022 19:10
bd0856c to
5797dfd
Compare
I believe this matches the expected behavior of tensor.empty as @silvasean pointed out in #8717. I've added the `--iree-flow-zero-fill-empty-tensors=` flag to allow an override if we notice user programs that assume the contents are zero-filled. On ESRGAN this saves nearly 1GB of memset(0)'s per invocation: - old fill count: 627 size: 2004094976 (2GB) - new fill count: 351 size: 1117008896 (1.1GB) Workaround for #6972. We still want generalized tracking but this will cover concats (the most common producers of this pattern). Progress on #7729.
benvanik
force-pushed
the
benvanik-empty-uninit
branch
from
November 11, 2022 20:00
5797dfd to
eb68a63
Compare
Contributor
Abbreviated Linux Benchmark Summary@ commit eb68a638c8c26ef2f4acbb98004d1a3c213da071 (vs. base a09e5644504542578fb79851b243a943af748687) No improved or regressed benchmarks 🏖️ Regressed Compilation Times 🚩
Improved Compilation Times 🎉
[Top 3 out of 84 results showed] For more information: |
Contributor
Abbreviated Benchmark Summary@ commit eb68a638c8c26ef2f4acbb98004d1a3c213da071 (vs. base d4aa49f1500b0597adf8f5b828a8d478635b26b1) Improved Latencies 🎉
No improved or regressed compilation metrics 🏖️ For more information: |
benvanik
marked this pull request as ready for review
November 11, 2022 22:18
MaheshRavishankar
approved these changes
Nov 11, 2022
MaheshRavishankar
left a comment
Collaborator
There was a problem hiding this comment.
Looks good, but i'd suggest wait to submit on Monday. This might cause correctness issues out of tree....
This was referenced Dec 9, 2022
This was referenced Dec 30, 2022
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.
I believe this matches the expected behavior of tensor.empty as @silvasean pointed out in #8717. I've added the
--iree-flow-zero-fill-empty-tensors=flag to allow an override if we notice user programs that assume the contents are zero-filled.On ESRGAN this saves nearly 1GB of memset(0)'s per invocation:
Original fill count: 627 size: 2004094976 (2GB)
New fill count: 351 size: 1117008896 (1.1GB)
Workaround for #6972. We still want generalized tracking but this will cover concats (the most common producers of this pattern).
Progress on #7729.