onnxruntime/csharp/src/Microsoft.ML.OnnxRuntime
Ashwini Khade 65201e47bf
Enable nuget packages for on device training (#13637)
### Description
This PR enables building nuget packages locally for on device training
using --build_nuget arg.
This PR also enables the C# bindings by default in the managed package.
If a user triggers any training apis when the native binary is not built
for training, an exception with message "Training is disabled in the
current build. Please build ONNXRuntime from source with the build flags
enable_training and enable_training_on_device. " is thrown.

Build command for creating nuget packes for on device training:
build.bat --enable_training --enable_training_on_device --build_nuget 

2 Nuget packages are built
1. Microsoft.ML.OnnxRuntime.Managed
2. Microsoft.ML.OnnxRuntime.Training OR
Microsoft.ML.OnnxRuntime.Training.Gpu



### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->
2022-12-05 14:54:09 -08:00
..
targets Add yml file for Snpe EP build (#13494) 2022-10-28 19:47:50 -07:00
Tensors C#: Avoid inefficient DenseTensor ctor in ToTensor extensions (#10240) 2022-01-19 07:43:44 +10:00
Training Enable nuget packages for on device training (#13637) 2022-12-05 14:54:09 -08:00
AssemblyInfo.shared.cs Add .net6 support to the C# nuget package. (#11908) 2022-06-22 08:08:24 +10:00
DisposableNamedOnnxValue.shared.cs Add Xamarin support (#9436) 2021-10-27 20:07:07 +10:00
Exceptions.shared.cs Add Xamarin support (#9436) 2021-10-27 20:07:07 +10:00
FixedBufferOnnxValue.shared.cs Add Xamarin support (#9436) 2021-10-27 20:07:07 +10:00
InferenceSession.shared.cs Csharp bindings for on-device training APIs (#12404) 2022-09-02 13:13:48 -07:00
Microsoft.ML.OnnxRuntime.csproj Enable nuget packages for on device training (#13637) 2022-12-05 14:54:09 -08:00
Microsoft.ML.OnnxRuntime.sln Add Xamarin support (#9436) 2021-10-27 20:07:07 +10:00
NamedOnnxValue.shared.cs Add Xamarin support (#9436) 2021-10-27 20:07:07 +10:00
NativeApiStatus.shared.cs Add Xamarin support (#9436) 2021-10-27 20:07:07 +10:00
NativeMethods.shared.cs Add getter/setter of C# OrtEnv log level (#13402) 2022-11-04 21:46:00 -07:00
NativeOnnxTensorMemory.shared.cs Use IntPtr instead of int conversion for pointer in Memory.Pin() (#10485) 2022-02-16 14:49:56 -08:00
NativeOnnxValueHelper.shared.cs Csharp bindings for on-device training APIs (#12404) 2022-09-02 13:13:48 -07:00
OnnxRuntime.shared.cs Add getter/setter of C# OrtEnv log level (#13402) 2022-11-04 21:46:00 -07:00
OrtAllocator.shared.cs Allow users to bind arbitrary memory using raw pointers (#10428) 2022-02-01 18:09:24 -08:00
OrtIoBinding.shared.cs Allow users to bind arbitrary memory using raw pointers (#10428) 2022-02-01 18:09:24 -08:00
OrtLoggingLevel.shared.cs Add Xamarin support (#9436) 2021-10-27 20:07:07 +10:00
OrtValue.shared.cs Allow users to bind arbitrary memory using raw pointers (#10428) 2022-02-01 18:09:24 -08:00
PrepackedWeightsContainer.shared.cs Add Xamarin support (#9436) 2021-10-27 20:07:07 +10:00
ProviderOptions.shared.cs Replace 'master' branch ref to 'main' in the code (#12547) 2022-08-22 10:48:12 -07:00
RunOptions.shared.cs Add Xamarin support (#9436) 2021-10-27 20:07:07 +10:00
SessionOptions.shared.cs Remove miscellaneous nuphar configs (#13070) 2022-09-26 13:41:28 -07:00
SessionOptionsContainer.shared.cs Add Xamarin support (#9436) 2021-10-27 20:07:07 +10:00