-
Notifications
You must be signed in to change notification settings - Fork 13.6k
[mlir][vector] Clarify the semantics of BroadcastOp #101928
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
7c08a8b
74d843c
89be55b
001a348
ab40831
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,9 +68,14 @@ enum class BroadcastableToResult { | |
DimensionMismatch = 2, | ||
SourceTypeNotAVector = 3 | ||
}; | ||
|
||
struct VectorDim { | ||
int64_t dim; | ||
bool isScalable; | ||
}; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This PR is unrelated to that discussion. I'm only adding this here to avoid adding new set of params to I believe that before we commit to any new wider API, we should discuss the internal representation of There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ouuh, exciting. |
||
BroadcastableToResult | ||
isBroadcastableTo(Type srcType, VectorType dstVectorType, | ||
std::pair<int, int> *mismatchingDims = nullptr); | ||
std::pair<VectorDim, VectorDim> *mismatchingDims = nullptr); | ||
|
||
/// Collect a set of vector-to-vector canonicalization patterns. | ||
void populateVectorToVectorCanonicalizationPatterns(RewritePatternSet &patterns, | ||
|
Uh oh!
There was an error while loading. Please reload this page.