zhiics commented on issue #4748: [RELAY] Support RelayBuild with Only Constants
URL: https://github.com/apache/incubator-tvm/issues/4748#issuecomment-576397447
 
 
   I saw this before as well. We actually had a warning in the C++ code when 
the returned module is empty.
   
https://github.com/apache/incubator-tvm/blob/ee0af843f3c5a3429e888079afb5f30789bd9bee/src/relay/backend/build_module.cc#L479-L480
   
   In order to avoid the erroneously working on the empty module, we can 
probably assert here:
   
https://github.com/apache/incubator-tvm/blob/ee0af843f3c5a3429e888079afb5f30789bd9bee/python/tvm/relay/build_module.py#L244
   
   But I think it might be not a good idea to assert as we should probably 
allow to feed the graph runtime an empty module. It just does nothing.

----------------------------------------------------------------
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]


With regards,
Apache Git Services

Reply via email to