forked from pytorch/pytorch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
metanet.proto
45 lines (37 loc) · 978 Bytes
/
metanet.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
syntax = "proto2";
import "caffe2/proto/caffe2.proto";
package caffe2;
message ModelInfo {
optional string project = 1;
optional string modelClass = 2;
optional string version = 3;
optional string predictorType = 4 [ default = "SINGLE_PREDICTOR" ];
optional string modelId = 5;
}
message BlobsMap {
required string key = 1;
repeated string value = 2;
}
message NetsMap {
required string key = 1;
required NetDef value = 2;
}
message PlansMap {
required string key = 1;
required PlanDef value = 2;
}
message StringMap {
required string key = 1;
required string value = 2;
}
message MetaNetDef {
repeated BlobsMap blobs = 1;
// Text-format serialized NetDefs.
repeated NetsMap nets = 2;
// Info about where the model comes from. Possible use cases:
// 1) sanity check or diagnose
// 2) provide info for evaluation.
optional ModelInfo modelInfo = 3;
repeated PlansMap plans = 4;
repeated StringMap applicationSpecificInfo = 5;
}