leandron commented on issue #6792:
URL: https://github.com/apache/tvm/issues/6792#issuecomment-776028730


   > @leandron I think your point is you want to inspect the graph and query 
the shape information. Ah, yes, I think previous design doesn't consider this 
requirement, so after serializing the module, we want users only use graph 
runtime factory module. cc @tqchen how about meeting this inspect requirement 
if we package everything into graph runtime factory module?
   
   So we are currently using the JSON for two things:
   1. To create the `GraphModule` or the `GraphModuleDebug` (when `--profile` 
is used)
   2. To extract input shapes
   
   For *1*, I found a way to create the Graph Runtime directly pointing to the 
loaded module, but it looks like it is not possible to accomplish the same for 
the *Debug Graph Runtime*, that requires the graph_json.
   
   
https://github.com/apache/tvm/blob/79b6ef753702a04e57aa1b2669d70d97db3094ca/python/tvm/contrib/debugger/debug_runtime.py#L74
   
   For *2*, would that be possible to extract input shapes from 
`get_num_input()` and `get_input(n)`?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to