Closed zopieux closed 3 months ago
Runing ort::init().commit()?;
at the top of main.rs
, before creating the TensorRTExecutionProvider
, should fix this.
Thanks for the quick reply! Confirmed working with the added init
.
Nit: I don't think this was documented, but I should have looked more closely at some other examples where this is being used.
It looks like the default setup for
TensorRTExecutionProvider
is not working as of latest release candidate. This seems to be a compile-time issue, a default logger is not registered at init time. This doesn't seem like something I can influence asort
library user.https://www.sidefx.com/docs/hdk/onnxruntime_2core_2common_2logging_2logging_8h_source.html
Ran in Docker image
nvcr.io/nvidia/tensorrt:24.06-py3
which should provide all the necessary libraries.