onnx: disable onnxruntime telemetry

Disable the telemetry feautre on onnxruntime.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8092>
This commit is contained in:
Daniel Morin 2024-12-07 00:23:33 -05:00
parent 507db9cee5
commit 89c23137d3

View file

@ -224,6 +224,7 @@ GstOnnxClient::GstOnnxClient (GstElement *debug_parent):debug_parent(debug_paren
env = env =
Ort::Env (OrtLoggingLevel::ORT_LOGGING_LEVEL_WARNING, Ort::Env (OrtLoggingLevel::ORT_LOGGING_LEVEL_WARNING,
"GstOnnxNamespace"); "GstOnnxNamespace");
env.DisableTelemetryEvents();
session = new Ort::Session (env, modelFile.c_str (), sessionOptions); session = new Ort::Session (env, modelFile.c_str (), sessionOptions);
auto inputTypeInfo = session->GetInputTypeInfo (0); auto inputTypeInfo = session->GetInputTypeInfo (0);
std::vector < int64_t > inputDims = std::vector < int64_t > inputDims =