NVIDIA / trt-samples-for-hackathon-cn

Simple samples for TensorRT programming
Apache License 2.0
1.47k stars 337 forks source link

AttributeError: 'tensorrt.tensorrt.ICudaEngine' object has no attribute 'num_io_tensors' #63

Open liyandongpy opened 1 year ago

liyandongpy commented 1 year ago

tensorrt 8.2.3

wili-65535 commented 1 year ago

Thank you for coming up with this! The attribute num_io_tensors is ready since TensorRT-8.4, for earlier TensorRT, we should come back to use Binding APIs, for this problem, engine.num_bindings can be used. (Refer to 01-SimpleDemo/TensorRT-8.0)

Ryan-Gh1 commented 9 months ago

Thank you for coming up with this! The attribute num_io_tensors is ready since TensorRT-8.4, for earlier TensorRT, we should come back to use Binding APIs, for this problem, engine.num_bindings can be used. (Refer to 01-SimpleDemo/TensorRT-8.0)

No,the attribute num_io_tensors is released in TensorRT-8.5.