-
Notifications
You must be signed in to change notification settings - Fork 15.3k
[mlir][vector] Add a check to ensure input vector rank equals target shape rank #127706
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 7 commits
06d4ab2
b8df120
04d4303
74ec44a
e0860bd
62961c2
77b4b65
2535f83
8bfb3eb
76e358d
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 |
|---|---|---|
|
|
@@ -768,6 +768,15 @@ func.func @extract_strided_slice(%arg0: vector<4x8x16xf32>) { | |
|
|
||
| // ----- | ||
|
|
||
| func.func @extract_strided_slice(%arg0: vector<3x2x2xf32>) { | ||
| // expected-error@+1 {{expected input vector rank to match target shape rank}} | ||
|
||
| %1 = vector.extract_strided_slice %arg0 {offsets = [0, 0], sizes = [2, 2], strides = [1, 1]}: | ||
|
||
| vector<3x2x2xf32> to vector<2x2xf32> | ||
| return | ||
| } | ||
|
|
||
| // ----- | ||
|
|
||
| #contraction_accesses = [ | ||
| affine_map<(b0, f0, f1, c0, c1) -> (c0, b0, c1, f0)>, | ||
| affine_map<(b0, f0, f1, c0, c1) -> (b0, c1, c0, f1)>, | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.