Could you please make sure, you are using the TensorRT version 8.6.1.
We are unable to reproduce the error, script is running successfully with a warning.
# python test.py
[09/29/2023-13:03:37] [TRT] [I] [MemUsageChange] Init CUDA: CPU +15, GPU +0, now: CPU 27, GPU 310 (MiB)
[09/29/2023-13:03:37] [TRT] [V] Trying to load shared library libnvinfer_builder_resource.so.8.6.1
[09/29/2023-13:03:37] [TRT] [V] Loaded shared library libnvinfer_builder_resource.so.8.6.1
[09/29/2023-13:03:43] [TRT] [I] [MemUsageChange] Init builder kernel library: CPU +424, GPU +74, now: CPU 528, GPU 384 (MiB)
[09/29/2023-13:03:43] [TRT] [V] CUDA lazy loading is enabled.
/my_data/266808/test.py:12: DeprecationWarning: Use padding_nd instead.
conv3d.padding = (1, 1) # fail
PASS - End of Script
On replacing the conv3d.padding = (1, 1) with conv3d.padding_nd = (1, 1)
# python test.py
[09/29/2023-13:05:45] [TRT] [I] [MemUsageChange] Init CUDA: CPU +15, GPU +0, now: CPU 27, GPU 310 (MiB)
[09/29/2023-13:05:45] [TRT] [V] Trying to load shared library libnvinfer_builder_resource.so.8.6.1
[09/29/2023-13:05:45] [TRT] [V] Loaded shared library libnvinfer_builder_resource.so.8.6.1
[09/29/2023-13:05:51] [TRT] [I] [MemUsageChange] Init builder kernel library: CPU +424, GPU +74, now: CPU 528, GPU 384 (MiB)
[09/29/2023-13:05:51] [TRT] [V] CUDA lazy loading is enabled.
PASS - End of Script
I just realized that padding_nd is at the bottom of this section, so I missed it. It would be useful to add to the description of padding that there is padding_nd below if the padding is not 2d.