disable logging for WASM in inference session ctor (#7545)

This commit is contained in:
Yulong Wang 2021-05-03 16:01:41 -07:00 committed by GitHub
parent 8b6602ae68
commit 418623355a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -297,7 +297,7 @@ void InferenceSession::ConstructorCommon(const SessionOptions& session_options,
// Add log to allow serving platforms to quantify ORT usage.
// 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
#ifdef NDEBUG
#if defined(NDEBUG) && !defined(__wasm__)
#ifdef _WIN32
std::wostringstream ostr;
#else