At first, I installed TensorRT7 but it gave me an error when looking for 'libnvinfer.so.5'. There is no 'libnvinfer.so.5' but a 'libnvinfer.so.7' instead. Then I installed TensorRT5 and followed the instructions here. This time I successfully created the optimized graph.
I use Tensorflow's profiler to generate a timeline.json. There are multiple names I've never seen before in the timeline table, such as 'volta_scudnn_128x32_relu_small_nn_v1', so I think the profiler is describing the optimized graph correctly, not the vanilla one.
However, no improvement appears according to the timeline.json. The inference times are nearly the same. My network is purely CNN with a structure similar to U-Net. I supposed there would be an improvement nearly 2x.
At first, I installed TensorRT7 but it gave me an error when looking for 'libnvinfer.so.5'. There is no 'libnvinfer.so.5' but a 'libnvinfer.so.7' instead. Then I installed TensorRT5 and followed the instructions here. This time I successfully created the optimized graph.
My codes:
I use Tensorflow's profiler to generate a timeline.json. There are multiple names I've never seen before in the timeline table, such as 'volta_scudnn_128x32_relu_small_nn_v1', so I think the profiler is describing the optimized graph correctly, not the vanilla one.
However, no improvement appears according to the timeline.json. The inference times are nearly the same. My network is purely CNN with a structure similar to U-Net. I supposed there would be an improvement nearly 2x.