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
|
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;
repeated string blobsOrder = 6;
repeated string preLoadBlobs = 7;
optional TensorBoundShapes tensorBoundShapes = 8;
repeated string requestOnlyEmbeddings = 9;
optional AOTConfig aotConfig = 10;
}
|