Исходный код СУБД 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
syntax = "proto2";
 
import "onnx/onnx-ml.proto";
 
package onnxruntime.proto;
 
//must sync with data_types.h
//MapStringToString
//MapStringToInt64
//MapStringToFloat
//MapStringToDouble
//MapInt64ToString
//MapInt64ToInt64
//MapInt64ToFloat
//MapInt64ToDouble
//VectorString
//VectorFloat
//VectorInt64
//VectorDouble
//VectorMapStringToFloat
//VectorMapInt64ToFloat
 
message MapStringToString {
  map<string, string> v = 1;
}
 
message MapStringToInt64 {
  map<string, int64> v = 1;
}
 
message MapStringToDouble {
  map<string, double> v = 1;
}
 
message MapStringToFloat {
  map<string, float> v = 1;
}
 
message MapInt64ToString {
  map<int64, string> v = 1;
}
 
message MapInt64ToInt64 {
  map<int64, int64> v = 1;
}
 
message MapInt64ToFloat {
  map<int64, float> v = 1;
}
 
message MapInt64ToDouble {
  map<int64, double> v = 1;
}
 
message VectorString {
  repeated string v = 1;
}
 
message VectorFloat {
  repeated float v = 1;
}
 
message VectorInt64 {
  repeated int64 v = 1;
}
 
message VectorDouble {
  repeated double v = 1;
}
 
message VectorMapStringToFloat {
  repeated MapStringToFloat v = 1;
}
 
message VectorMapInt64ToFloat {
  repeated MapInt64ToFloat v = 1;
}
 
message TraditionalMLData {
  oneof values {
    MapStringToString map_string_to_string = 1;
    MapStringToInt64 map_string_to_int64 = 2;
    MapStringToFloat map_string_to_float = 3;
    MapStringToDouble map_string_to_double = 4;
    MapInt64ToString map_int64_to_string = 5;
    MapInt64ToInt64 map_int64_to_int64 = 6;
    MapInt64ToFloat map_int64_to_float = 7;
    MapInt64ToDouble map_int64_to_double = 8;
    VectorString vector_string = 9;
    VectorFloat vector_float = 10;
    VectorInt64 vector_int64 = 11;
    VectorDouble vector_double = 12;
    VectorMapStringToFloat vector_map_string_to_float = 13;
    VectorMapInt64ToFloat vector_map_int64_to_float = 14;
    onnx.TensorProto tensor = 16;
  }
  // Optionally, a name for the tensor.
  optional string name = 15;
  optional string debug_info = 17;  //A human-readable string for helping debugging
}
 
message TestCaseConfig {
  optional double per_sample_tolerance = 1;
  optional double relative_per_sample_tolerance = 2;
  optional bool post_processing = 3;
}
// For using protobuf-lite
option optimize_for = LITE_RUNTIME;