2020-04-24 21:39:54 +00:00
|
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
|
|
// Licensed under the MIT License.
|
|
|
|
|
|
|
|
|
|
#include "test.h"
|
2023-07-26 04:56:50 +00:00
|
|
|
struct AdapterSessionTestAPI {
|
2020-04-24 21:39:54 +00:00
|
|
|
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;
|
2020-07-31 00:55:26 +00:00
|
|
|
VoidTest GetNumberOfIntraOpThreads;
|
2020-04-24 21:39:54 +00:00
|
|
|
};
|
2020-05-13 00:22:47 +00:00
|
|
|
const AdapterSessionTestAPI& getapi();
|
2020-04-24 21:39:54 +00:00
|
|
|
|
|
|
|
|
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)
|
2020-07-31 00:55:26 +00:00
|
|
|
WINML_TEST(AdapterSessionTest, GetNumberOfIntraOpThreads)
|
2020-04-24 21:39:54 +00:00
|
|
|
WINML_TEST_CLASS_END()
|