mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
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:
parent
507db9cee5
commit
89c23137d3
1 changed files with 1 additions and 0 deletions
|
@ -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 =
|
||||||
|
|
Loading…
Reference in a new issue