From 89c23137d39db024798b96fc3651341d1f19a06f Mon Sep 17 00:00:00 2001 From: Daniel Morin Date: Sat, 7 Dec 2024 00:23:33 -0500 Subject: [PATCH] onnx: disable onnxruntime telemetry Disable the telemetry feautre on onnxruntime. Part-of: --- subprojects/gst-plugins-bad/ext/onnx/gstonnxclient.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/subprojects/gst-plugins-bad/ext/onnx/gstonnxclient.cpp b/subprojects/gst-plugins-bad/ext/onnx/gstonnxclient.cpp index 8536281953..f84a6d80cf 100644 --- a/subprojects/gst-plugins-bad/ext/onnx/gstonnxclient.cpp +++ b/subprojects/gst-plugins-bad/ext/onnx/gstonnxclient.cpp @@ -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 =