summaryrefslogtreecommitdiff
path: root/compiler/tfinfo-v2/proto/tfinfo-v2.proto
blob: 4f7c47b4a0f1215a9c77bf51520c8ae1d7b7a2eb (plain)
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
syntax = "proto3";

package tfinfo_v2_proto;
option cc_enable_arenas = true;

/*
Example of prototxt file is as follows:

input {
    name : "placeholder:0"
}
output {
    name : "relu:0"
}

When a model has unknown dim in its input,
value of all unknowm dims must be provided like the following:

input {
    name : "placeholder:0"
    dim { axis: 0  size: 8 }
    dim { axis: 3  size: 4 }
}
output {
    name : "relu:0"
}
*/

message Dim {
  int32 axis = 1;
  int64 size = 2; // tensorflow uses int64
}

message OutputDef {
  string name = 1;
}

message InputDef {
  string name = 1;
  repeated Dim dim = 2;
}

message InfoDef {
  repeated InputDef  input  = 1;
  repeated OutputDef output = 2;
}