Tensorrt issue with Tensorflow 2.6 on Windows 11

Description

I have Tensorflow 2.6 installed on my Windows11 machine and code is failing with:

File “C:\Users\intel-vr-1\Desktop\all-agx-xavier-classifier\modules\model.py”, line 48, in
from tensorflow.python.compiler.tensorrt import trt_convert as trt
ImportError: cannot import name ‘trt_convert’ from ‘tensorflow.python.compiler.tensorrt’ (C:\Users\intel-vr-1\AppData\Roaming\Python\Python37\site-packages\tensorflow\python\compiler\tensorrt_init_.py)

Any suggestions on this please, thanks in advance.

Hi,
We recommend you to check the below samples links in case of tf-trt integration issues.

If issue persist, We recommend you to reach out to Tensorflow forum.
Thanks!

We do not provide official support for windows.
As the following doc states, “Windows support is provided experimentally. No guarantee is made regarding functionality or engineering support. Use at your own risk.” That being said, windows support was added recently by someone from the community.

Maybe you need to use the recent TF version.

Hi guys, sorry for delayed reply, thanks for the info.