mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-15 20:50:42 +00:00
Add Xamarin support to the ORT nuget packages. - Update C# code to support Xamarin builds for iOS and Android - refactor some things to split out common code - include iOS and Android ORT native shared library in native nuget package
21 lines
No EOL
509 B
C#
21 lines
No EOL
509 B
C#
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// Licensed under the MIT License.
|
|
|
|
using System;
|
|
using Microsoft.ML.OnnxRuntime.InferenceSample;
|
|
|
|
namespace CSharpUsage
|
|
{
|
|
class Program
|
|
{
|
|
public static void Main(string[] args)
|
|
{
|
|
Console.WriteLine("Using API");
|
|
using (var inferenceSampleApi = new InferenceSampleApi())
|
|
{
|
|
inferenceSampleApi.Execute();
|
|
}
|
|
Console.WriteLine("Done");
|
|
}
|
|
}
|
|
} |