onnxruntime/csharp/test/Microsoft.ML.OnnxRuntime.Tests.Common
Dmitri Smirnov 322237f482
[C#] Implement OrtValue APIs (#16206)
### Description

Expose `OrtValue` class API as first-class citizen.
Make it simular with C++ API.
Enable safe direct native memory access.
Make string tensor manipulation more efficient.
Avoid intermediate structures such as `NamedOnnxValue`,
`DisposableNamedOnnxvalue` and etc.

Provide more examples with `IOBinding`, although `OrtValue` API
potentially makes `IOBinding` redundant for most of scenarios, since
`OrtValue` can be created on top of any memory.

Run all the pre-trained models now with `OrtValue` API as well.
Obsolete `OrtExternalMemory class`. Obsolete IOBinding API that takes
`FixedBufferOnnxValue`.

### Motivation and Context
Make the API efficient and uniform with C++.

This aspires to address: 
https://github.com/microsoft/onnxruntime/issues/14918
https://github.com/microsoft/onnxruntime/issues/15381

Cc: @Craigacp
2023-06-29 08:59:23 -07:00
..
Tensors [C#] Implement OrtValue APIs (#16206) 2023-06-29 08:59:23 -07:00
AssemblyInfo.cs
InferenceTest.cs [C#] Implement OrtValue APIs (#16206) 2023-06-29 08:59:23 -07:00
Microsoft.ML.OnnxRuntime.Tests.Common.csproj [C#] Implement OrtValue APIs (#16206) 2023-06-29 08:59:23 -07: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
OrtIoBindingAllocationTest.cs [C#] Implement OrtValue APIs (#16206) 2023-06-29 08:59:23 -07:00
OrtValueTests.cs [C#] Implement OrtValue APIs (#16206) 2023-06-29 08:59:23 -07:00
TestDataLoader.cs [C#] Implement OrtValue APIs (#16206) 2023-06-29 08:59:23 -07:00
TrainingTest.cs [C#] Implement OrtValue APIs (#16206) 2023-06-29 08:59:23 -07:00