mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-18 21:21:17 +00:00
* 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>
28 lines
No EOL
824 B
C
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() |