Running trt.create_inference_graph, kernel restarting


A clear and concise description of the bug or issue.


TensorRT Version: 7.1.3-1
GPU Type: Volta GPU
Nvidia Driver Version: 32.5.1
CUDA Version: cuda 10.2
CUDNN Version:
Operating System + Version: Ubuntu 18.02
Python Version (if applicable): Python 3.6
TensorFlow Version (if applicable): 1.15.5+nv21.6
PyTorch Version (if applicable):
Baremetal or Container (if container which image + tag):

Relevant Files - I am trying to run the jupyter notebook detection.ipynb file in tf_trt_models/examples/detection at master · NVIDIA-AI-IOT/tf_trt_models · GitHub

Repository used → GitHub - NVIDIA-AI-IOT/tf_trt_models: TensorFlow models accelerated with NVIDIA TensorRT

Steps To Reproduce

After I Run the jupyter notebook file, everything works file until I run this block below

Optimize the model with TensorRT

trt_graph = trt.create_inference_graph(
    max_workspace_size_bytes=1 << 25,

Below is the error I am getting

Kernel Restarting
The kernel for /tf_trt_models/detection.ipynb appears to have died. It will restart automatically.

I am not sure why it dies. Please help.

Can you try running your model with trtexec command, and share the “”–verbose"" log in case if the issue persist

You can refer below link for all the supported operators list, in case any operator is not supported you need to create a custom plugin to support that operation

Also, request you to share your model and script if not shared already so that we can help you better.

Meanwhile, for some common errors and queries please refer to below link:


@NVES Looks like Tensor RT 7.x.x versions is not tested against TensorFlow 1.15.5(which is the version) I am using.

Probably I have to upgrade my Tensor RT to 8.x.x version(because I see it is tested against TensorFlow 1.15.5) in the release notes. Hopefully that fixes my issue…

Hope below samples may be helpful to you.