mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-04 04:07:22 +00:00
### Description This PR partially reverts changes introduced in https://github.com/microsoft/onnxruntime/pull/15643 We make two API return std::string always in UTF-8. We also move the entry points from OrtApiBase to OrtApi to make them versioned. ### Motivation and Context `GetVersionString` always returns x.y.z numbers that are not subject to internationalization. `GetBuildInfoString` can hold international chars, but UTF-8 should be fine to contain those. We prefix them with u8"" in case the compiler default charset is not UTF-8. Furthermore, creating platform dependent APIs is discouraged. `ORTCHAR_T` is platform dependent and was created for paths only. On non-unix platforms would still produce `std::string` that can only contain UTF-8 The API was introduced after the latest release, and can still be adjusted. |
||
|---|---|---|
| .. | ||
| targets | ||
| Tensors | ||
| Training | ||
| AssemblyInfo.shared.cs | ||
| DisposableNamedOnnxValue.shared.cs | ||
| Exceptions.shared.cs | ||
| FixedBufferOnnxValue.shared.cs | ||
| InferenceSession.shared.cs | ||
| ManagedProjections.shared.cs | ||
| Microsoft.ML.OnnxRuntime.csproj | ||
| Microsoft.ML.OnnxRuntime.sln | ||
| NamedOnnxValue.shared.cs | ||
| NativeApiStatus.shared.cs | ||
| NativeMethods.shared.cs | ||
| NativeOnnxValueHelper.shared.cs | ||
| OrtAllocator.shared.cs | ||
| OrtEnv.shared.cs | ||
| OrtIoBinding.shared.cs | ||
| OrtLoggingLevel.shared.cs | ||
| OrtThreadingOptions.shared.cs | ||
| OrtValue.shared.cs | ||
| OrtValueTensor.shared.cs | ||
| PrepackedWeightsContainer.shared.cs | ||
| ProviderOptions.shared.cs | ||
| RunOptions.shared.cs | ||
| SessionOptions.shared.cs | ||
| SessionOptionsContainer.shared.cs | ||