YuchenJin edited a comment on pull request #8586:
URL: https://github.com/apache/tvm/pull/8586#issuecomment-890373873
> Hi @YuchenJin, regarding this PR, what do you think can be further
improved or we should have another PR to systematically refactor the API usage?
Thanks.
Hi @ganler, I think for this PR you can pass the `params` directly to
`create_executor` as following because it has potential performance benefits,
and we should make users become used to this style.
```
executor = relay.build_module.create_executor("graph", mod, tvm.cpu(0),
target, params).evaluate()
tvm_output = executor(tvm.nd.array(x.astype(dtype))).numpy()
```
It would be great if you want to systematically refactor the APIs in another
PR, and I'm happy to discuss! Thanks! :)
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]