-
Notifications
You must be signed in to change notification settings - Fork 671
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
Error when translating keras NASNetMobile model to FlatBuffer for Vulkan backend #2764
Comments
There could be several reasons that it fails. I can see some from bottom up. One reason is that there are ops interleave with Linalg structure ops, so it fails in split-dispatch-function-pass.
This might be addressed by #2763 From higher view, the reshape op is not fused into the later generic op in tensor's world. This is because it's the reshape op is collapsing dims and it's a producer of the later generic op. We can only fuse these two ops only if the reshape op is expanding dims. However, even if we can somehow fuse these two ops. The generic ops won't be fused because there is no deps (like RAW or WAR) between them, since the common operands are all for inputs. Thus, I'm not sure if this should be addressed in higher level like flow dialect or something because we might not expect them to be in the same dispatch function. For short-term solution (or if they can be in the same dispatch function), I think it would be addressed by #2763. Could you attach the |
The patch was merged, so maybe you could sync to the latest and give it a shot. |
Thanks for the attachment, I will take a look! |
Could you rebase to the main and do it again? I compiled the module with upstream/main and got no errors. Eg,
Note, it seems that there are depthwise conv ops in the file, and it's not supported yet. This is WIP, see #2678. I suspect that there is a numerical issue even it's compiled. |
Oh, sorry, I've just rebuilt it and it works, thanks! |
Code on python to get MLIR module:
Then the following command:
Some lines of error:
The text was updated successfully, but these errors were encountered: