mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-18 21:21:17 +00:00
19 lines
493 B
C#
19 lines
493 B
C#
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|||
|
|
// Licensed under the MIT License.
|
|||
|
|
|
|||
|
|
namespace Microsoft.ML.OnnxRuntime.Tests.MAUI
|
|||
|
|
{
|
|||
|
|
public class PlatformTests
|
|||
|
|
{
|
|||
|
|
// Semi-random test to check we can add an EP
|
|||
|
|
[Fact(DisplayName = "CPU_EP_NoArena")]
|
|||
|
|
public void TestEnableCpuEPWithNoArena()
|
|||
|
|
{
|
|||
|
|
var opt = new SessionOptions();
|
|||
|
|
int useArena = 0;
|
|||
|
|
opt.AppendExecutionProvider_CPU(useArena);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|