[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.