mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-19 21:32:23 +00:00
### Description Re-work OrtEnv class so we can pass various options when creating the environment such as: - logId - initial logging level - thread options - user supplied logging function Create the default instance when SessionOptions are instantiated as users often forget to do so. ### Motivation and Context We lack this capability. Inspired by https://github.com/microsoft/onnxruntime/pull/13822 https://github.com/microsoft/onnxruntime/pull/13951 https://github.com/microsoft/onnxruntime/pull/11593 Cc: @thoron --------- Co-authored-by: Edward Chen <18449977+edgchen1@users.noreply.github.com>
19 lines
No EOL
506 B
C#
19 lines
No EOL
506 B
C#
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// Licensed under the MIT License.
|
|
|
|
namespace Microsoft.ML.OnnxRuntime
|
|
{
|
|
/// <summary>
|
|
/// Log severity levels
|
|
///
|
|
/// Must in sync with OrtLoggingLevel in onnxruntime_c_api.h
|
|
/// </summary>
|
|
public enum OrtLoggingLevel
|
|
{
|
|
ORT_LOGGING_LEVEL_VERBOSE = 0,
|
|
ORT_LOGGING_LEVEL_INFO = 1,
|
|
ORT_LOGGING_LEVEL_WARNING = 2,
|
|
ORT_LOGGING_LEVEL_ERROR = 3,
|
|
ORT_LOGGING_LEVEL_FATAL = 4,
|
|
}
|
|
} |