AttributeError: module 'tensorrt' has no attribute 'volume'

I’m trying to use tensorRT on virtualenv. tensorRT is 6.0.1. The device is a jets on nano.
When I run the program I get the following error.

AttributeError: module 'tensorrt' has no attribute 'volume'

How can I solve it?
import tensorrt as trt does not produce any error.
Thanks!

Hi @kubo1
I think this should be able to answer your query

Thanks!

@AakankshaS
Thank you. However, it seems that the link does not have a concrete solution. Should I change the version of tensorRT?

Hi @kubo1,
Apologies for delayed response.
Yes that might help to upgrade the TRT.
Thanks!