Исходный код СУБД RuDB — свободной СУБД с открытым исходным кодом на базе PostgreSQL
rudb
3 days ago bd039d1e92813358c5c5a1e346b49074baf513f2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
 
#include "test.h"
#include "core/providers/winml/winml_provider_factory.h"
#include "winml_adapter_c_api.h"
 
struct AdapterTestApi {
  SetupClass AdapterTestSetup;
  TeardownClass AdapterTestTeardown;
  VoidTest CreateModelFromPath;
  VoidTest CreateModelFromData;
  VoidTest CloneModel;
  VoidTest ModelGetAuthor;
  VoidTest ModelGetName;
  VoidTest ModelGetDomain;
  VoidTest ModelGetDescription;
  VoidTest ModelGetVersion;
  VoidTest ModelGetInputCount;
  VoidTest ModelGetOutputCount;
  VoidTest ModelGetInputName;
  VoidTest ModelGetOutputName;
  VoidTest ModelGetInputDescription;
  VoidTest ModelGetOutputDescription;
  VoidTest ModelGetInputTypeInfo;
  VoidTest ModelGetOutputTypeInfo;
  VoidTest ModelGetMetadataCount;
  VoidTest ModelGetMetadata;
  VoidTest ModelEnsureNoFloat16;
  VoidTest EnvConfigureCustomLoggerAndProfiler;
};
const AdapterTestApi& getapi();
const WinmlAdapterApi* winml_adapter_api;
const OrtApi* ort_api;
OrtModel* squeezenet_model = nullptr;
OrtModel* metadata_model = nullptr;
OrtModel* float16_Model = nullptr;
static bool logging_function_called = false;
static bool profiling_function_called = false;
 
WINML_TEST_CLASS_BEGIN(AdapterTest)
WINML_TEST_CLASS_SETUP_CLASS(AdapterTestSetup)
WINML_TEST_CLASS_TEARDOWN_CLASS(AdapterTestTeardown)
WINML_TEST_CLASS_BEGIN_TESTS
WINML_TEST(AdapterTest, CreateModelFromPath)
WINML_TEST(AdapterTest, CreateModelFromData)
WINML_TEST(AdapterTest, CloneModel)
WINML_TEST(AdapterTest, ModelGetAuthor)
WINML_TEST(AdapterTest, ModelGetName)
WINML_TEST(AdapterTest, ModelGetDomain)
WINML_TEST(AdapterTest, ModelGetDescription)
WINML_TEST(AdapterTest, ModelGetVersion)
WINML_TEST(AdapterTest, ModelGetInputCount)
WINML_TEST(AdapterTest, ModelGetOutputCount)
WINML_TEST(AdapterTest, ModelGetInputName)
WINML_TEST(AdapterTest, ModelGetOutputName)
WINML_TEST(AdapterTest, ModelGetInputDescription)
WINML_TEST(AdapterTest, ModelGetOutputDescription)
WINML_TEST(AdapterTest, ModelGetInputTypeInfo)
WINML_TEST(AdapterTest, ModelGetOutputTypeInfo)
WINML_TEST(AdapterTest, ModelGetMetadataCount)
WINML_TEST(AdapterTest, ModelGetMetadata)
WINML_TEST(AdapterTest, ModelEnsureNoFloat16)
WINML_TEST(AdapterTest, EnvConfigureCustomLoggerAndProfiler)
WINML_TEST_CLASS_END()