mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-01 03:45:06 +00:00
Disable telemetry log for training builds (#7585)
This commit is contained in:
parent
5413eaa5e4
commit
be2a3046fe
1 changed files with 1 additions and 1 deletions
|
|
@ -297,7 +297,7 @@ void InferenceSession::ConstructorCommon(const SessionOptions& session_options,
|
||||||
// Add log to allow serving platforms to quantify ORT usage.
|
// Add log to allow serving platforms to quantify ORT usage.
|
||||||
// To avoid flooding the test logs, this is done for non-debug mode only
|
// To avoid flooding the test logs, this is done for non-debug mode only
|
||||||
// TODO: plug-in a platform specific telemetry provider to send the telemetry to
|
// TODO: plug-in a platform specific telemetry provider to send the telemetry to
|
||||||
#if defined(NDEBUG) && !defined(__wasm__)
|
#if defined(NDEBUG) && !defined(__wasm__) && !defined(ENABLE_TRAINING)
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
std::wostringstream ostr;
|
std::wostringstream ostr;
|
||||||
#else
|
#else
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue