-
Notifications
You must be signed in to change notification settings - Fork 699
[Layout] Layout verification failed #3804
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
Comments
Hmm, not a lot to go on, but: there are two stages in the Glow compilation pipeline: pre-backend-specific optimizations and post-lowering. Layout verification is disabled (by default), so a private backend should not fail with this, unless said backend enabled it (setting
Whatever it is 1 or 2 above, what's happening here is that we're searching for the input layout for the operation: going back the graph until we find a node that is layout-aware and/or layout-modifying, for some reason, said input (in the bigger graph/picture that I don't have in this issue), which is the output of another node, is in
Without a reproducible test-case, I cannot narrow it down further. |
I forgot to mention I hit the problem while profiling the model with image-classifier in preparation for quantization. The problem is the same for both the standard CPU and Interpreter backend (I`m not using a private backend). I cannot share the ONNX model since it`s something private/custom that is why I cropped a part of the model to show you. |
I assume it is pre-lowering then. during the canonical tensor layout phase. Most likely, either our ONNX loader has a bug (not adding the layout information to an input storage or adding a bad reshape/transpose) or you caught a real bug in our pre-lowering graph optimizer. Without an access to (a trimmed-down?) test-case, It is next to impossible for me figure it out, I'd suggest adding a breakpoint on |
…3832) Summary: While they are not data parallel, they can operate on any order of dimensions. Fixes pytorch#3804 Pull Request resolved: pytorch#3832 Test Plan: ``` model-compiler -backend=CPU -model=model1.onnx -emit-bundle=build model-compiler -backend=CPU -model=model2.onnx -emit-bundle=build ``` Differential Revision: D18765346 Pulled By: shajrawi fbshipit-source-id: c44713036b00918ac14ef62f117982d0dfcfc062
Now I don`t know why this happens (a previous version of Glow did not exhibit this) but I get an error during Layout verification in this portion of graph:
I get the following error:
I
m new to this Layout verification thing. I don
t understand the problem here and the solution.Can you please hint the problem/solutin? (I think @shajrawi is the author of this).
Thanks!
The text was updated successfully, but these errors were encountered: