-
Notifications
You must be signed in to change notification settings - Fork 30
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
[Conv2d] stride 2 test failed to legalize operation 'vector.extract_strided_slice' #581
Comments
Or possibly supported in mlir-aie's aievec but not ours... @yzhang93 in the future feel free to tag me as well on aievec related issues since I "own" aievec in our/this plugin. |
greping for |
Okay, sure! One related question, do we still have any dependency on MLIR-AIE in third_party? |
Only op defs in tablegen #430 (comment) |
@yzhang93 sorry being n00b - can you give me the |
I don't understand why there is a 7 here, can't the tile size be chosen larger (or smaller) to make it the size we want (4 or 8)? @yzhang93 @erwei-xilinx |
My understanding is that the issue is the need for
Maybe we could have the DMA do the above, so that the input data is already in our expected shape before feeding into the kernel? |
This 7 comes from the input image width. Because we have the output width as multiple of 4 and this is a stride 2 Conv, the input width is the odd number. |
Maybe I'm misunderstanding, but wouldn't a 8x8 slice do exactly the same? I understand that you wouldn't need the 8th <8xi8> one because you only actually use the 1st, 3rd, 5th, and 7th 64-bit sub-slice, but the hardware can only load 256-bit and 512-bit chunks of memory (and scalars, of course). |
Ok, I think this can be solved by changing the padding at some level of the lowering |
Conv2d with stride = 2 example:
Error:
Generated IR snippet:
@jsetoain It looks like
vector.extract_strided_slice
is not supported in aievec.The text was updated successfully, but these errors were encountered: