mbaret commented on issue #4919: [Relay][Pass] Don't consider constants as free 
vars in MergeComposite
URL: https://github.com/apache/incubator-tvm/pull/4919#issuecomment-589754556
 
 
   I have a feeling you may be able to get around this problem by using 
bind_params_by_name. I have to do this when using merge composite because 
weight parameters are still treating as variables until this pass it called, at 
which time they are replaced with constants.
   
   Could you try running:
   ```
   f = relay.build_module.bind_params_by_name(mod["main"], params)
   mod = tvm.IRModule()
   mod["main"] = f
   ```
   before the merge composite?

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