how to use `tensorrt.infer` for TensorRT-

hello, after I pip install tensorrt- under TensorRT- 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