how to use `tensorrt.infer` for TensorRT-5.0.2.6

hello, after I pip install tensorrt-5.0.2.6-py2.py3-none-any.whl under TensorRT-5.0.2.6/python dir, I can not use tensorrt.infer. I check the detailed content in my python packages, it shows python2.7/site-packages/tensorrt/legacy/infer/..., so how to use tensorrt/infer like the rt examples?

sorry, I have solved it.

Hi Andrew,

Could you tell me how did you solve?

@varun365 you only can use tensorrt.legacy.infer rather than tensorrt.infer, and you need to use from tensorrt.legacy.lite import Engine from tensorrt.legacy.parsers import uffparser or other similar code before you using tensorrt.legacy.infer