After I installed tensorrt, I tested whether I install tensorrt successfully. I run ‘import tensorrt’ successfully, but error occurred when running ‘import uff’,the error is as fllows:
Traceback (most recent call last):
File “/home/graphic/anaconda3/lib/python3.6/site-packages/uff/converters/tensorflow/conversion_helpers.py”, line 18, in
from tensorflow import GraphDef
ImportError: cannot import name ‘GraphDef’
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “”, line 1, in
File “/home/graphic/anaconda3/lib/python3.6/site-packages/uff/init.py”, line 2, in
from uff.converters.tensorflow.conversion_helpers import from_tensorflow # noqa
File “/home/graphic/anaconda3/lib/python3.6/site-packages/uff/converters/tensorflow/conversion_helpers.py”, line 23, in
TensorFlow 2'yi yükleyin“”".format(err))
ImportError: ERROR: Failed to import module (cannot import name ‘GraphDef’)
I am sure I have installed tensorflow.I don’t know how to solve this error,can anybody help me?