mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-14 20:48:00 +00:00
* Include onnxruntime binary when not using pacakge referene or uap app. * Remove the lib\uap10.0 build from the nuget package - causing conflicts * Add UWP test * remove build files * remove local change * reset mimalloc and onnx-tensorrt * change username to Microsoft Co-authored-by: Sheil Kumar <sheilk@microsoft.com>
32 lines
1 KiB
C#
32 lines
1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Runtime.InteropServices.WindowsRuntime;
|
|
using Windows.Foundation;
|
|
using Windows.Foundation.Collections;
|
|
using Windows.UI.Xaml;
|
|
using Windows.UI.Xaml.Controls;
|
|
using Windows.UI.Xaml.Controls.Primitives;
|
|
using Windows.UI.Xaml.Data;
|
|
using Windows.UI.Xaml.Input;
|
|
using Windows.UI.Xaml.Media;
|
|
using Windows.UI.Xaml.Navigation;
|
|
|
|
// The Blank Page item template is documented at https://go.microsoft.com/fwlink/?LinkId=402352&clcid=0x409
|
|
|
|
namespace Microsoft.AI.MachineLearning.Tests.Uwp
|
|
{
|
|
/// <summary>
|
|
/// An empty page that can be used on its own or navigated to within a Frame.
|
|
/// </summary>
|
|
public sealed partial class MainPage : Page
|
|
{
|
|
public MainPage()
|
|
{
|
|
this.InitializeComponent();
|
|
var model = Windows.ApplicationModel.Package.Current.InstalledPath + "\\squeezenet.onnx";
|
|
Microsoft.AI.MachineLearning.LearningModel.LoadFromFilePath(model);
|
|
}
|
|
}
|
|
}
|