mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-18 21:21:17 +00:00
* Start adapter tests * Fix more adapter session CMake * Implememt adapter session tests * Fix adapter test breaks * Test fixes, profiling test * Fix adapter w/ DML tests * Cleanup * Fix WinML adapter profiling test * Fix memory leaks * Remove FIXME
44 lines
1.7 KiB
C
44 lines
1.7 KiB
C
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// Licensed under the MIT License.
|
|
|
|
#include "test.h"
|
|
struct AdapterSessionTestAPi
|
|
{
|
|
SetupClass AdapterSessionTestSetup;
|
|
TeardownClass AdapterSessionTestTeardown;
|
|
VoidTest AppendExecutionProvider_CPU;
|
|
VoidTest AppendExecutionProvider_DML;
|
|
VoidTest CreateWithoutModel;
|
|
VoidTest GetExecutionProvider;
|
|
VoidTest GetExecutionProvider_DML;
|
|
VoidTest Initialize;
|
|
VoidTest RegisterGraphTransformers;
|
|
VoidTest RegisterGraphTransformers_DML;
|
|
VoidTest RegisterCustomRegistry;
|
|
VoidTest RegisterCustomRegistry_DML;
|
|
VoidTest LoadAndPurloinModel;
|
|
VoidTest Profiling;
|
|
VoidTest CopyInputAcrossDevices;
|
|
VoidTest CopyInputAcrossDevices_DML;
|
|
};
|
|
const AdapterSessionTestAPi& getapi();
|
|
|
|
WINML_TEST_CLASS_BEGIN(AdapterSessionTest)
|
|
WINML_TEST_CLASS_SETUP_CLASS(AdapterSessionTestSetup)
|
|
WINML_TEST_CLASS_TEARDOWN_CLASS(AdapterSessionTestTeardown)
|
|
WINML_TEST_CLASS_BEGIN_TESTS
|
|
WINML_TEST(AdapterSessionTest, AppendExecutionProvider_CPU)
|
|
WINML_TEST(AdapterSessionTest, AppendExecutionProvider_DML)
|
|
WINML_TEST(AdapterSessionTest, CreateWithoutModel)
|
|
WINML_TEST(AdapterSessionTest, GetExecutionProvider)
|
|
WINML_TEST(AdapterSessionTest, GetExecutionProvider_DML)
|
|
WINML_TEST(AdapterSessionTest, Initialize)
|
|
WINML_TEST(AdapterSessionTest, RegisterGraphTransformers)
|
|
WINML_TEST(AdapterSessionTest, RegisterGraphTransformers_DML)
|
|
WINML_TEST(AdapterSessionTest, RegisterCustomRegistry)
|
|
WINML_TEST(AdapterSessionTest, RegisterCustomRegistry_DML)
|
|
WINML_TEST(AdapterSessionTest, LoadAndPurloinModel)
|
|
WINML_TEST(AdapterSessionTest, Profiling)
|
|
WINML_TEST(AdapterSessionTest, CopyInputAcrossDevices)
|
|
WINML_TEST(AdapterSessionTest, CopyInputAcrossDevices_DML)
|
|
WINML_TEST_CLASS_END()
|