[Tensorrt > 8] Object has no attribute "max_workspace_size"

I’ve tested this on Windows 10, 11, and Ubuntu 22.04, and I’m using cuda12.4.1 and tensorrt 10.0.1.
I’ve encountered the following error:

tensorrt.tensorrt.IBuilderConfig' object has no attribute 'max_workspace_size

and

tensorrt.tensorrt.Builder' object has no attribute 'build_engine

Hi @yhw2880 ,
This has been migrated


https://docs.nvidia.com/deeplearning/tensorrt/api/python_api/infer/Core/BuilderConfig.html?highlight=workspace#tensorrt.MemoryPoolType

I faced the same issues. I really appreciate if you could explain in detail the solution, what codes need to be replaced and so on. thankyou!