AttributeError: module 'common' has no attribute 'allocate_buffers'

Hi,
I’m using nvidia-docker (nvcr.io/nvidia/tensorrt:19.03-py3),
I’m trying to use the onnx_to_tensorrt.py on the yolov3.onnx file. and using NVIDIA’s tutorial:
https://docs.nvidia.com/deeplearning/sdk/tensorrt-sample-support-guide/index.html#yolov3_onnx

Now, I’m trying to run inference on a sample image by using onnx_to_tensorrt.py

It throws an error on the common module:

inputs, outputs, bindings, stream = common.allocate_buffers(engine)
AttributeError: module 'common' has no attribute 'allocate_buffers'


edit:
probably will need to use just allocate_buffers from /usr/src/tensorrt/samples/python/introductory_parser_samples

Solution: common.py is in the samples folder.

common.py ?
copy /tensorrt/sample/python/common.py to yolov3-onnx/

ok