You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by "digital-nomad-cheng (via GitHub)" <gi...@apache.org> on 2023/05/22 09:37:53 UTC

[GitHub] [tvm] digital-nomad-cheng commented on issue #14717: [Bug] Check failed: type_code_ == kTVMObjectHandle (0 vs. 8) : expected Object but got int

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: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org