You are viewing a plain text version of this content. The canonical link for it is here.
Posted to discuss-archive@tvm.apache.org by Liyaoshun via Apache TVM Discuss <no...@discuss.tvm.ai> on 2021/10/21 11:25:49 UTC
[Apache TVM Discuss] [Questions] [TensorRT] has no attribute pad_value
How can I fix this bug
---
[Visit Topic](https://discuss.tvm.apache.org/t/tensorrt-class-tvm-relay-op-op-attrs-padattrs-has-no-attribute-pad-value/11265/3) 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/29dbffd1f8e85410bb6e460bcb3e93362e5974b0a7d2d9ca6fb02921b2123cce).
[Apache TVM Discuss] [Questions] [TensorRT] has no attribute pad_value
Posted by Heliqi via Apache TVM Discuss <no...@discuss.tvm.ai>.
This modification should not be sufficient.
`Conv2d` appears to have a `pad_value` attribute, but `pad_value` is argument on 'Pad'.
---
[Visit Topic](https://discuss.tvm.apache.org/t/tensorrt-class-tvm-relay-op-op-attrs-padattrs-has-no-attribute-pad-value/11265/6) 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/8d1c4f542770974352c2452e3c3233205f84f8b78e5ce11432f8581ba08ce44c).
[Apache TVM Discuss] [Questions] [TensorRT] has no attribute pad_value
Posted by Liyaoshun via Apache TVM Discuss <no...@discuss.tvm.ai>.
Thank you for your advice. Now I can export the .so file, but there is an error when loading the .so file with C + +. I will give up this scheme for the time being.
The following is the error message when loading the .so file:
terminate called after throwing an instance of 'tvm::runtime::InternalError'
what(): [11:18:37] ../../src/runtime/library_module.cc:116: Binary was created using metadata but a loader of that name is not registered. Available loaders are cuda, GraphExecutorFactory, GraphRuntimeFactory. Perhaps you need to recompile with this runtime enabled.
Stack trace:
---
[Visit Topic](https://discuss.tvm.apache.org/t/tensorrt-class-tvm-relay-op-op-attrs-padattrs-has-no-attribute-pad-value/11265/5) 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/3e3cdc2c60eaba42e449823aa15c9d1c16f70b54ad9dc86beca0f9ff3e2195b4).
[Apache TVM Discuss] [Questions] [TensorRT] has no attribute pad_value
Posted by Wuwei Lin via Apache TVM Discuss <no...@discuss.tvm.ai>.
https://github.com/apache/tvm/blob/main/python/tvm/relay/op/contrib/tensorrt.py#L745
you need to change it to `pad_value = args[1]` and check `isinstance(pad_value, Constant)` so that you can get the numeric value of pad value
---
[Visit Topic](https://discuss.tvm.apache.org/t/tensorrt-class-tvm-relay-op-op-attrs-padattrs-has-no-attribute-pad-value/11265/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/fec1c63f4050ae2e2756f2966a075c458dbd7b461d4fa18b2c674c361a244570).