onnxruntime/csharp/test/Microsoft.ML.OnnxRuntime.Tests.Common
Dmitri Smirnov a66af390fa
[C#] Allow passing various options when creating singleton Environment object. (#14723)
### 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>
2023-04-18 21:49:55 -07:00
..
Tensors
AssemblyInfo.cs
InferenceTest.cs [C#] Allow passing various options when creating singleton Environment object. (#14723) 2023-04-18 21:49:55 -07:00
Microsoft.ML.OnnxRuntime.Tests.Common.csproj [C#] Allow passing various options when creating singleton Environment object. (#14723) 2023-04-18 21:49:55 -07:00
OnnxData.cs Implement Optional Metadata support and C# test support (#15314) 2023-04-11 09:41:59 -07:00
OnnxMl.cs Implement Optional Metadata support and C# test support (#15314) 2023-04-11 09:41:59 -07:00
OrtEnvTests.cs [C#] Allow passing various options when creating singleton Environment object. (#14723) 2023-04-18 21:49:55 -07:00
OrtIoBindingAllocationTest.cs Allow users to bind arbitrary memory using raw pointers (#10428) 2022-02-01 18:09:24 -08:00
TestDataLoader.cs Implement Optional Metadata support and C# test support (#15314) 2023-04-11 09:41:59 -07:00
TrainingTest.cs Miscellaneous updates to training apis (#13929) 2022-12-14 13:33:07 -08:00