I currently incur in the following error when initializing the network with DriveWorks:
DefaultLogger: [23-02-2023 17:43:31] DefaultLogger: Driveworks exception thrown: DW_INVALID_HANDLE: Cannot cast to C++ handle, given instance is a nullptr, type=P15dwContextObject
terminate called after throwing an instance of ‘std::runtime_error’
what(): [2023-02-23 17:43:31] DW Error DW_INVALID_HANDLE executing DW function:
dwDNN_initializeTensorRTFromFile(&dnn, “/mnt/persistent/mfddFP16.bin”, nullptr, DW_PROCESSOR_TYPE_GPU, contextHandle)
No, in the first place I just tried to load the engine, removing the rest of the code.
But now I tried with the original code by changing the model - generated with tensorRT_optimization - and I am getting a different error, as in the attachment. error.txt (5.4 KB)