onnx: disable onnxruntime telemetry
authorDaniel Morin <daniel.morin@collabora.com>
Sat, 7 Dec 2024 05:23:33 +0000 (00:23 -0500)
committerDaniel Morin <daniel.morin@collabora.com>
Sat, 7 Dec 2024 05:23:33 +0000 (00:23 -0500)
Disable the telemetry feautre on onnxruntime.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8092>

subprojects/gst-plugins-bad/ext/onnx/gstonnxclient.cpp

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