File: metanet.proto

package info (click to toggle)
pytorch 1.13.1%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 139,252 kB
  • sloc: cpp: 1,100,274; python: 706,454; ansic: 83,052; asm: 7,618; java: 3,273; sh: 2,841; javascript: 612; makefile: 323; xml: 269; ruby: 185; yacc: 144; objc: 68; lex: 44
file content (50 lines) | stat: -rw-r--r-- 1,182 bytes parent folder | download | duplicates (2)
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;
}