digital-nomad-cheng commented on issue #14717: URL: https://github.com/apache/tvm/issues/14717#issuecomment-1556888750
The reason for this error is that the [docs](https://tvm.apache.org/docs/how_to/deploy/tensorrt.html) for `partition_for_tensorrt` is out dated. The correct usage should be: ``` mod = partition_for_tensorrt(mod, params) with tvm.transform.PassContext(opt_level=3): lib = relay.build(mod, target=target, params=params) ``` As can be shown here: https://github.com/apache/tvm/blob/cd4551353b11c1d55571f9e7f597b485d3c678ff/tests/python/contrib/test_tensorrt_int8_exp.py#L114 -- 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]
