Hi, the model I’m working on has the following output:
...
%1562 = (%1550, %1551, %1552, %1553, %1554, %1555, %1556, %1557, %1558, %1559, %1560, %1561);
(%1549, %1562)
}
i.e., the output is a tuple where the second element is another tuple with 12 elements.
relay.build(...)
errors on this model with the following message:
[bt] (0) /mnt/2e797a66-fd2b-44fc-a3ba-24d7d65f2780/projects/dev/tvm/build/libtvm.so(+0x104245b) [0x7f30ec71a45b]
File "/mnt/2e797a66-fd2b-44fc-a3ba-24d7d65f2780/projects/dev/tvm/src/relay/backend/graph_plan_memory.cc", line 86
TVMError: Check failed: tok.size() == 1U (12 vs. 1) :
The error is happening when memory planner is visiting TupleNode
:
So it seems to me the memory planner is complaining about tuple of tuples? @tqchen do you have an idea what’s going on?
UPDATE: VM compilation doesn’t have this problem.