-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[BugFix][Runtime] Fix Incorrect node information #13693
Conversation
Thanks for contributing to TVM! Please refer to the contributing guidelines https://tvm.apache.org/docs/contribute/ for useful information and tips. Please request code reviews from Reviewers by @-ing them in a comment. Generated by tvm-bot |
Can you come up a test case for this? |
@masahi Try the code below, with the old wrong code, it will print "p0 has shape: [1, 3, 4, 16]", actually it should print "p0 has shape: [3, 3, 1, 1]" import tvm x = relay.var("x", shape=(1, 3, 48, 16), dtype="float32") func = relay.Function([x], relay.Tuple([x0, x1, y])) |
I mean, can you add that as a test, probably in |
done |
* [BugFix][Runtime] Fix Incorrect node information * 1 * 1
node["attrs"] and node["shape"] may read incorrect node information due to incorrect indexing, especially nodes with multiple outputs in the graph.