Build_cuda_engine() throws error

Hi all, I tried using build_cuda_engine(network) but it throws the error as below

engine = builder . build_cuda_engine ( network )
AttributeError: ‘tensorrt.tensorrt.Builder’ object has no attribute ‘build_cuda_engine’. Did you mean: ‘build_engine’?

Few details about existing software/libraries

  1. Cuda version - cuda-12.2
  2. Jetpack version is 6

Please let me know what could be the reason.

Thanks and Regards

Nagaraj. Trivedi

Hi,

The API has changed.
Please follow the below sample to run an ONNX model with TensorRT 8.6:

Thanks.

Hi, thank you for providing this info. I will try this and let you know.

Thanks and Regards

Nagaraj Trivedi

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.