mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-16 21:00:14 +00:00
21 lines
509 B
C#
21 lines
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");
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|