mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-17 21:10:43 +00:00
* Add onnxruntime-windows api. * minor fixes * add to package headers * Build ort_dml_api for provider extensions. * Cleanup * misc comment * remove winml specific comments * use dml check in onnxruntime * Update include/onnxruntime/core/providers/dml/dml_provider_factory.h Co-authored-by: Dwayne Robinson <dwayner@microsoft.com> * Update include/onnxruntime/core/session/onnxruntime_c_api.h Co-authored-by: Dwayne Robinson <dwayner@microsoft.com> * Update include/onnxruntime/core/providers/dml/dml_provider_factory.h Co-authored-by: Dwayne Robinson <dwayner@microsoft.com> * Update include/onnxruntime/core/providers/dml/dml_provider_factory.h Co-authored-by: Dwayne Robinson <dwayner@microsoft.com> * Update onnxruntime/core/session/onnxruntime_c_api.cc Co-authored-by: Dwayne Robinson <dwayner@microsoft.com> * Update onnxruntime/core/session/ort_apis.h Co-authored-by: Dwayne Robinson <dwayner@microsoft.com> * Update winml/test/adapter/AdapterSessionTest.cpp Co-authored-by: Dwayne Robinson <dwayner@microsoft.com> * Update onnxruntime/core/session/onnxruntime_c_api.cc Co-authored-by: Dwayne Robinson <dwayner@microsoft.com> * Update winml/adapter/winml_adapter_c_api.cpp Co-authored-by: Dwayne Robinson <dwayner@microsoft.com> * Update include/onnxruntime/core/session/onnxruntime_c_api.h Co-authored-by: Pranav Sharma <prs@microsoft.com> * Update onnxruntime/core/session/onnxruntime_c_api.cc Co-authored-by: Pranav Sharma <prs@microsoft.com> * Update winml/adapter/winml_adapter_c_api.cpp * PR feedback * Update include/onnxruntime/core/providers/dml/dml_provider_factory.h Co-authored-by: Dwayne Robinson <dwayner@microsoft.com> * Update include/onnxruntime/core/providers/dml/dml_provider_factory.h Co-authored-by: Dwayne Robinson <dwayner@microsoft.com> * Update include/onnxruntime/core/providers/dml/dml_provider_factory.h Co-authored-by: Dwayne Robinson <dwayner@microsoft.com> * PR feedback * merge resolution and unreference param * (naming) Remove Dml prefix * maybe unused version * move DML code into DML path. CIs failing because DML is not available when --use_dml is not on * fix warning causing local build failures after merging * Change getvaluememoryinfo to gettensormemoryinfo * minor breaks * fix comment paste * fix comment Co-authored-by: Sheil Kumar <sheilk@microsoft.com> Co-authored-by: Dwayne Robinson <dwayner@microsoft.com> Co-authored-by: Pranav Sharma <prs@microsoft.com>
38 lines
1.6 KiB
C
38 lines
1.6 KiB
C
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// Licensed under the MIT License.
|
|
|
|
#include "test.h"
|
|
struct AdapterDmlEpTestApi
|
|
{
|
|
SetupTest AdapterDmlEpTestSetup;
|
|
TeardownClass AdapterDmlEpTestTeardown;
|
|
VoidTest DmlExecutionProviderSetDefaultRoundingMode;
|
|
VoidTest DmlExecutionProviderFlushContext;
|
|
VoidTest DmlExecutionProviderReleaseCompletedReferences;
|
|
VoidTest DmlCreateGPUAllocationFromD3DResource;
|
|
VoidTest DmlCreateAndFreeGPUAllocationFromD3DResource;
|
|
VoidTest GetTensorMemoryInfo;
|
|
VoidTest ExecutionProviderSync;
|
|
VoidTest DmlCopyTensor;
|
|
VoidTest CreateCustomRegistry;
|
|
VoidTest ValueGetDeviceId;
|
|
VoidTest SessionGetInputRequiredDeviceId;
|
|
};
|
|
const AdapterDmlEpTestApi& getapi();
|
|
|
|
WINML_TEST_CLASS_BEGIN(AdapterDmlEpTest)
|
|
WINML_TEST_CLASS_SETUP_METHOD(AdapterDmlEpTestSetup)
|
|
WINML_TEST_CLASS_TEARDOWN_METHOD(AdapterDmlEpTestTeardown)
|
|
WINML_TEST_CLASS_BEGIN_TESTS
|
|
WINML_TEST(AdapterDmlEpTest, DmlExecutionProviderSetDefaultRoundingMode)
|
|
WINML_TEST(AdapterDmlEpTest, DmlExecutionProviderFlushContext)
|
|
WINML_TEST(AdapterDmlEpTest, DmlExecutionProviderReleaseCompletedReferences)
|
|
WINML_TEST(AdapterDmlEpTest, DmlCreateGPUAllocationFromD3DResource)
|
|
WINML_TEST(AdapterDmlEpTest, DmlCreateAndFreeGPUAllocationFromD3DResource)
|
|
WINML_TEST(AdapterDmlEpTest, GetTensorMemoryInfo)
|
|
WINML_TEST(AdapterDmlEpTest, ExecutionProviderSync)
|
|
WINML_TEST(AdapterDmlEpTest, DmlCopyTensor)
|
|
WINML_TEST(AdapterDmlEpTest, CreateCustomRegistry)
|
|
WINML_TEST(AdapterDmlEpTest, ValueGetDeviceId)
|
|
WINML_TEST(AdapterDmlEpTest, SessionGetInputRequiredDeviceId)
|
|
WINML_TEST_CLASS_END()
|