-
Notifications
You must be signed in to change notification settings - Fork 190
/
input_context.proto
57 lines (49 loc) · 1.5 KB
/
input_context.proto
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
syntax = "proto3";
package carls;
// An InputContext is a list of features that provides the context of an input.
message InputContext {
// Map from feature name to InputFeature.
map<string, InputFeature> feature = 1;
}
// A generic sparse/dense feature representation.
// Each feature must have a unique value list, be it string, float or int.
// To include addition information for debugging, one can use debug_info.
message InputFeature {
repeated FeatureValue feature_value = 1;
}
message FeatureValue {
oneof feature {
BytesFeature bytes_feature = 1;
FloatFeature float_feature = 2;
Int64Feature int64_feature = 3;
Uint64Feature uint64_feature = 4;
}
}
message BytesFeature {
bytes value = 1;
// Weights associated with this feature vlaue.
repeated float weight = 2;
// Human-readable informaiton for each of the feature values.
string debug_info = 3;
}
message FloatFeature {
float value = 1;
// Weights associated with this feature vlaue.
repeated float weight = 2;
// Human-readable informaiton for each of the feature values.
string debug_info = 3;
}
message Int64Feature {
int64 value = 1;
// Weights associated with this feature vlaue.
repeated float weight = 2;
// Human-readable informaiton for each of the feature values.
string debug_info = 3;
}
message Uint64Feature {
uint64 value = 1;
// Weights associated with this feature vlaue.
repeated float weight = 2;
// Human-readable information for each of the feature values.
string debug_info = 3;
}