Hello @hjiang,

Thanks for answering, I was able to feed the params into the model by adopting 
your change.

But I add one more change: I changed to the following code
>     if params:
>          for param in params:
>              self.graph_modules_[mod_idx].set_input(**params)
 into the following code to avoid the error 
>     if params:
>          self.graph_modules_[mod_idx].set_input(**params)

https://github.com/apache/tvm/blob/1ee5831b61b5a196eb99a44a998087f3c9c8c4a1/python/tvm/contrib/pipeline_executor.py#L220

====================================================================

More info:
What I want to do is very similar to do what you have done in 
[tvm/test_pipeline_executor.py at fba531e55f032367acc28090605c5533b2e88f55 ยท 
apache/tvm 
(github.com)](https://github.com/apache/tvm/blob/fba531e55f032367acc28090605c5533b2e88f55/tests/python/relay/test_pipeline_executor.py)
To be more specific, I tried to compare the correctness of the pipeline 
setting, in another word, if I feed the input to with pipeline and run the 
inference, I was expected to get the same result as I get in without the 
pipeline setting. Now I was able to achieve so.

Thanks again :)





---
[Visit 
Topic](https://discuss.tvm.apache.org/t/how-to-set-parameter-into-pipeline-module/11375/4)
 to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click 
here](https://discuss.tvm.apache.org/email/unsubscribe/e1a7b7b02629082440aa98c6c5c91ceaa8bf87615862c685390bb6a8a1c8ca9b).

Reply via email to