onnxruntime/csharp/test/Microsoft.ML.OnnxRuntime.Tests.Common
Dmitri Smirnov 1e18efade5
[C#] Add ML Sequences and Maps Create and Process APIs (#16648)
### Description
1) Added Sequence And Maps convenience APIs to create input Sequences
and Maps
and also visit the outputs.

2) Address OrtValue design issue when the values are created on top of
the
managed memory and the ortValues are used for sequence and maps
creation.
We should retain the original managed instances that keep the memory
pinned.
We opt to keep track of those and dispose of them within an instance of
OrtValue
that represents a Map or a Sequence.

3) Set `LangVersion` to default per [MS Versioning
Docs.](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/configure-language-version)

### Motivation and Context
1) When writing code examples, use of Map and Sequences API proved to be
cumbersome.
2) It is a BUG, that we should address, as the managed memory can move
by the GC and lead to
intermittent crashes.
3) Make use of the most feature of the C#.
2023-07-21 12:58:29 +08:00
..
Tensors [C#] Implement OrtValue APIs (#16206) 2023-06-29 08:59:23 -07:00
AssemblyInfo.cs
EqualityComparers.cs Add MAUI test app that can be used to test model loading and performance (#16658) 2023-07-18 08:21:18 +10:00
InferenceTest.cs Add MAUI test app that can be used to test model loading and performance (#16658) 2023-07-18 08:21:18 +10:00
Microsoft.ML.OnnxRuntime.Tests.Common.csproj [C#] Add ML Sequences and Maps Create and Process APIs (#16648) 2023-07-21 12:58:29 +08:00
OnnxData.cs Implement Optional Metadata support and C# test support (#15314) 2023-04-11 09:41:59 -07:00
OnnxMl.cs update OnnxMl.cs (#15702) 2023-04-28 11:20:29 -07:00
OrtEnvTests.cs Adust GetVersionString() GetBuildInfoString() signatures and move them to OrtApi (#15921) 2023-05-13 13:45:07 -07:00
OrtFloat16Tests.cs [C#, CPP] Introduce Float16/BFloat16 support and tests for C#, C++ (#16506) 2023-07-14 10:46:52 -07:00
OrtIoBindingAllocationTest.cs [C#] Implement OrtValue APIs (#16206) 2023-06-29 08:59:23 -07:00
OrtValueTests.cs [C#] Add ML Sequences and Maps Create and Process APIs (#16648) 2023-07-21 12:58:29 +08:00
TestDataLoader.cs [C#] Add ML Sequences and Maps Create and Process APIs (#16648) 2023-07-21 12:58:29 +08:00
TrainingTest.cs [C#] Implement OrtValue APIs (#16206) 2023-06-29 08:59:23 -07:00