Repository navigation
Simplifications around narrow dimensions in encodings. - #18607
Merged
Merged
Conversation
bjacob
force-pushed
the
drop-kNarrowThreshold
branch
from
September 27, 2024 02:33
4e9d414 to
f193bee
Compare
kNarrowThreshold constant.
bjacob
force-pushed
the
drop-kNarrowThreshold
branch
from
September 27, 2024 13:38
f193bee to
1b80195
Compare
Signed-off-by: Benoit Jacob <[email protected]>
bjacob
force-pushed
the
drop-kNarrowThreshold
branch
from
September 27, 2024 13:52
1b80195 to
7119a9d
Compare
bjacob
marked this pull request as ready for review
September 27, 2024 14:15
bjacob
requested review from
IanWood1,
MaheshRavishankar,
benvanik and
hanhanW
as code owners
September 27, 2024 14:15
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.
kNarrowThresholdconstant, relying instead on the default padding value.encodingattribute to tell if around_dims_toentry should be considered narrow, rely on the fact that we only ever need one narrowest dimension in a given matmul to be considered narrow, so the smallestround_dims_toentry is the narrow one; if allround_dims_toentries are equal, the matmul is not narrow.MatmulNarrowDimstruct to unify helpers and group them inEncodingOps.{h,cpp}.getMatmulNarrow{M,N}getters onEncodingAttr.MatmulNarrowDimstruct allows replacing both these methods by a singlegetMatmulNarrowDim, which also simplifies callers.