Conversation
| #We can't fix it because cmake only supports the "TargetFrameworkVersion" property, not "TargetFramework". | ||
| set_target_properties(Microsoft.ML.OnnxRuntime Microsoft.ML.OnnxRuntime.InferenceSample Microsoft.ML.OnnxRuntime.Tests | ||
| Microsoft.ML.OnnxRuntime.PerfTool PROPERTIES EXCLUDE_FROM_ALL 1) | ||
|
|
There was a problem hiding this comment.
No point adding these entries just to exclude them.
| @@ -0,0 +1,15 @@ | |||
| --- | |||
| # clang-format settings for the C# code | |||
| BasedOnStyle: Microsoft | |||
There was a problem hiding this comment.
This is only used for the C# projects. The .clang-format in the root directory is used for everything else.
| </None> | ||
| <None Include="$(NativeBuildOutputDir)\onnxruntime.pdb" Condition="'$(IsWindowsBuild)'=='true'And Exists('$(NativeBuildOutputDir)\onnxruntime.pdb')"> | ||
| <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
| <Visible>false</Visible> |
There was a problem hiding this comment.
Using PreserveNewest as these files are large and the copy was taking minutes on my dev machine every time you wanted to run a test.
| EndProject | ||
| Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FasterRcnnSample.Forms", "FasterRcnnSample.Forms\FasterRcnnSample.Forms.csproj", "{51D1A8FB-ADFF-43DE-8215-DB5E86DA4870}" | ||
| EndProject | ||
| Global |
There was a problem hiding this comment.
This will most likely move to the inference samples repo once the nuget package is released.
| return new DisposableNamedOnnxValue(name, dt, OnnxValueType.ONNX_TYPE_TENSOR, nativeTensorWrapper.ElementType, nativeTensorWrapper); | ||
| } catch(Exception e) | ||
| } catch(Exception) | ||
| { |
There was a problem hiding this comment.
Fixing some warnings.
| #region Runtime/Environment API | ||
|
|
||
| [UnmanagedFunctionPointer(CallingConvention.Winapi)] | ||
| public delegate IntPtr /* OrtStatus* */DOrtCreateEnv(LogLevel default_warning_level, string logId, out IntPtr /*(OrtEnv*)*/ env); |
There was a problem hiding this comment.
'WinApi' actually means the appropriate platform specific default.
| #if USE_TENSORRT | ||
| [Fact] | ||
| private void CanRunInferenceOnAModelWithTensorRT() | ||
| { |
There was a problem hiding this comment.
Moved to Tests.NetCoreApp
| ALLOW_UNICODE_NAMES = NO | ||
| OUTPUT_LANGUAGE = English | ||
| OUTPUT_TEXT_DIRECTION = None | ||
| BRIEF_MEMBER_DESC = YES |
There was a problem hiding this comment.
Removing deprecated options
| EXCLUDE_SYMBOLS = | ||
| EXAMPLE_PATH = $(ORT_DOXY_SRC)\csharp\sample\Microsoft.ML.OnnxRuntime.InferenceSample\Program.cs | ||
| EXAMPLE_PATH = | ||
| EXAMPLE_PATTERNS = * |
There was a problem hiding this comment.
We don't have any 'example' code in doxygen comments so this is unnecessary.
| displayName: 'Restore nuget packages' | ||
| - task: NuGetCommand@2 | ||
| displayName: Restore NuGet Packages | ||
| inputs: |
There was a problem hiding this comment.
dotnet.exe doesn't support all the new target frameworks, so use nuget and msbuild.
csharp/sample/Xamarin/FasterRcnnSample/FasterRcnnSample.Forms/MainPage.xaml.cs
Outdated
Show resolved
Hide resolved
csharp/sample/Xamarin/FasterRcnnSample/FasterRcnnSample.Forms/MainPage.xaml.cs
Outdated
Show resolved
Hide resolved
| <PackageId>Microsoft.ML.OnnxRuntime.Managed</PackageId> | ||
| <Authors>Microsoft</Authors> | ||
| <PackageVersion Condition=" '$(PackageVersion)' == '' ">0.0</PackageVersion> | ||
| <PackageVersion Condition=" '$(PackageVersion)' == '' And '$(Configuration)' == 'Debug' ">1.0.0</PackageVersion> |
There was a problem hiding this comment.
just curious as to why Debug has version 1.0.0?
There was a problem hiding this comment.
@mikeparker104 do you remember? May have been so the version was valid when testing locally.
There was a problem hiding this comment.
Was during local testing where the package was being built via the csproj not the normal way via the .proj in the \csharp dir.
csharp/src/Microsoft.ML.OnnxRuntime/SessionOptionsContainer.shared.cs
Outdated
Show resolved
Hide resolved
...rosoft.ML.OnnxRuntime.EndToEndTests.Mobile/EndToEndTests.Mobile.Automation/AppInitializer.cs
Show resolved
Hide resolved
csharp/test/Microsoft.ML.OnnxRuntime.EndToEndTests.Mobile/runmobiletests.sh
Show resolved
Hide resolved
csharp/test/Microsoft.ML.OnnxRuntime.Tests.Droid/InferenceTest.android.cs
Outdated
Show resolved
Hide resolved
| { | ||
| var opt = new SessionOptions(); | ||
| opt.AppendExecutionProvider_CoreML(CoreMLFlags.COREML_FLAG_ONLY_ENABLE_DEVICE_WITH_ANE); | ||
| Assert.NotNull(opt); |
There was a problem hiding this comment.
similar to the android test, remove opt != null assertion after opt is used
There was a problem hiding this comment.
will do as separate PR
Description:
Add Xamarin support to the ORT nuget packages.
Motivation and Context
Enable usage of ORT in Xamarin apps