Uh oh!
There was an error while loading. Please reload this page.
[TOPI] Add transpose_a/b & dynamic shape support for batch matmul - #8527
Conversation
Also cc @wyc-ruiker , I remember you mentioned the requirement of this in #8402? Seems you need to add topi schedules yourself after merging this. 😆 |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
f79d12b to
76e2b46Compare492ee2f to
8dac20aCompare295777b to
0649ec8Compare@comaniac Thanks! I think I've addressed all of the comments. I have tested that the default topi schedule works well for all 4 input formats, at least won't cause any error. |
comaniac
commented
Jul 29, 2021
…ache#8527) * Add basic support for batch matmul transpose * Update * Lint fix & add tf convert support * Update Lint fix * Bug fix for qnn.batch_matmul * Bug fix for tensorflow test * Add grad support for batch_matmul * Lint fix Re-triggle CI Bug fix Re-triggle CI Re-triggle CI Re-triggle CI
…ache#8527) * Add basic support for batch matmul transpose * Update * Lint fix & add tf convert support * Update Lint fix * Bug fix for qnn.batch_matmul * Bug fix for tensorflow test * Add grad support for batch_matmul * Lint fix Re-triggle CI Bug fix Re-triggle CI Re-triggle CI Re-triggle CI
In #8234, a new op
nn.matmulwas added to extendnn.densewith transpose/non-transpose inputs support.This PR is going to also extend
nn.batch_matmulto support inputs to be in transpose or non-transposed format.Since the original topi schedule is still for NT format, I set the default format of
nn.batch_matmulto be NT. And for theqnn.batch_matmuland some pass likeCombineParallelBatchMatmul, I just left them to only support NT currently. Guys who are interested in these may continue to fix :)Things TODO in this PR:
cc @comaniac@altanh@tkonolige