onnxruntime/winml/test/api/RawApiTests.h
Sheil Kumar 671fa60327
Enable direct tensorization and detensorization to many buffers in WinML (#5791)
* switch to work PC

* back with iterable of buffers

* add raw api tests

* tensorization

* last test

* all tests pass!

* small cleanup

* whitespace

* newline

* whitespace

* refactor common code into DisjointBufferHelpers

* remove unused file

* warning

* skip gpu tests when hardware not available

* Add error condition when createreference is invoked

* add null check to cretereference

* uncomment out check

Co-authored-by: Sheil Kumar <sheilk@microsoft.com>
2020-11-16 10:06:22 -08:00

28 lines
No EOL
824 B
C

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "test.h"
struct RawApiTestsApi
{
SetupClass RawApiTestsApiTestsClassSetup;
VoidTest CreateModelFromFilePath;
VoidTest CreateCpuDevice;
VoidTest Evaluate;
VoidTest EvaluateNoInputCopy;
VoidTest EvaluateManyBuffers;
VoidTest EvaluateFromModelFromBuffer;
};
const RawApiTestsApi& getapi();
WINML_TEST_CLASS_BEGIN(RawApiTests)
WINML_TEST_CLASS_SETUP_CLASS(RawApiTestsApiTestsClassSetup)
WINML_TEST_CLASS_BEGIN_TESTS
WINML_TEST(RawApiTests, CreateModelFromFilePath)
WINML_TEST(RawApiTests, CreateCpuDevice)
WINML_TEST(RawApiTests, Evaluate)
WINML_TEST(RawApiTests, EvaluateNoInputCopy)
WINML_TEST(RawApiTests, EvaluateManyBuffers)
WINML_TEST(RawApiTests, EvaluateFromModelFromBuffer)
WINML_TEST_CLASS_END()