Skip to content

Commit 78fa64f

Browse files
committed
update tensorflow protos
1 parent e166112 commit 78fa64f

File tree

7 files changed

+77
-1
lines changed

7 files changed

+77
-1
lines changed

tensorboard/compat/proto/BUILD

+7
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,17 @@ tb_proto_library(
126126
],
127127
)
128128

129+
tb_proto_library(
130+
name = "graph_debug_info",
131+
srcs = ["graph_debug_info.proto"],
132+
)
133+
129134
tb_proto_library(
130135
name = "graph",
131136
srcs = ["graph.proto"],
132137
deps = [
133138
":function",
139+
":graph_debug_info",
134140
":node_def",
135141
":versions",
136142
],
@@ -326,6 +332,7 @@ tb_proto_library(
326332
":full_type",
327333
":function",
328334
":graph",
335+
":graph_debug_info",
329336
":histogram",
330337
":meta_graph",
331338
":node_def",

tensorboard/compat/proto/config.proto

+3-1
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,9 @@ message ConfigProto {
691691
// aims to negate its value.
692692
bool disable_optimize_for_static_graph = 24;
693693

694-
// Next: 25
694+
reserved 25;
695+
696+
// Next: 26
695697
}
696698

697699
Experimental experimental = 16;

tensorboard/compat/proto/coordination_config.proto

+5
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,9 @@ message CoordinationServiceConfig {
5656
// If empty, no jobs will be recoverable and every task failure will cause
5757
// error propagation to other tasks.
5858
repeated string recoverable_jobs = 9;
59+
60+
// If a task restarts with a new incarnation, we may allow it to reconnect
61+
// silently. This is useful when we know that a task can immediately resume
62+
// work upon re-connecting to the service.
63+
bool allow_new_incarnation_to_reconnect = 11;
5964
}

tensorboard/compat/proto/graph.proto

+4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ syntax = "proto3";
33
package tensorboard;
44

55
import "tensorboard/compat/proto/function.proto";
6+
import "tensorboard/compat/proto/graph_debug_info.proto";
67
import "tensorboard/compat/proto/node_def.proto";
78
import "tensorboard/compat/proto/versions.proto";
89

@@ -53,4 +54,7 @@ message GraphDef {
5354
// consumer does not start until all return values of the callee
5455
// function are ready.
5556
FunctionDefLibrary library = 2;
57+
58+
// Stack traces for the nodes in this graph.
59+
GraphDebugInfo debug_info = 5;
5660
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
syntax = "proto3";
2+
3+
package tensorboard;
4+
5+
option cc_enable_arenas = true;
6+
option java_outer_classname = "GraphDebugInfoProtos";
7+
option java_multiple_files = true;
8+
option java_package = "org.tensorflow.framework";
9+
option go_package = "github.com/tensorflow/tensorflow/tensorflow/go/core/protobuf/for_core_protos_go_proto";
10+
11+
message GraphDebugInfo {
12+
// This represents a file/line location in the source code.
13+
message FileLineCol {
14+
// File name index, which can be used to retrieve the file name string from
15+
// `files`. The value should be between 0 and (len(files)-1)
16+
int32 file_index = 1;
17+
18+
// Line number in the file.
19+
int32 line = 2;
20+
21+
// Col number in the file line.
22+
int32 col = 3;
23+
24+
// Name of function contains the file line.
25+
string func = 4;
26+
27+
// Source code contained in this file line.
28+
string code = 5;
29+
}
30+
31+
// This represents a stack trace which is a ordered list of `FileLineCol`.
32+
message StackTrace {
33+
// Each line in the stack trace.
34+
repeated FileLineCol file_line_cols = 1;
35+
}
36+
37+
// This stores all the source code file names and can be indexed by the
38+
// `file_index`.
39+
repeated string files = 1;
40+
41+
// This maps a node name to a stack trace in the source code.
42+
// The map key is a mangling of the containing function and op name with
43+
// syntax:
44+
// op.name '@' func_name
45+
// For ops in the top-level graph, the func_name is the empty string.
46+
// Note that op names are restricted to a small number of characters which
47+
// exclude '@', making it impossible to collide keys of this form. Function
48+
// names accept a much wider set of characters.
49+
// It would be preferable to avoid mangling and use a tuple key of (op.name,
50+
// func_name), but this is not supported with protocol buffers.
51+
map<string, StackTrace> traces = 2;
52+
}

tensorboard/compat/proto/proto_test.py

+4
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@
6666
"tensorflow.core.framework.function_pb2",
6767
"tensorboard.compat.proto.function_pb2",
6868
),
69+
(
70+
"tensorflow.core.framework.graph_debug_info_pb2",
71+
"tensorboard.compat.proto.graph_debug_info_pb2",
72+
),
6973
(
7074
"tensorflow.core.framework.graph_pb2",
7175
"tensorboard.compat.proto.graph_pb2",

tensorboard/compat/proto/struct.proto

+2
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ message StructuredValue {
7272
DictValue dict_value = 53;
7373
// Represents Python's namedtuple.
7474
NamedTupleValue named_tuple_value = 54;
75+
// Represents a value for tf.Tensor.
76+
tensorboard.TensorProto tensor_value = 55;
7577
}
7678
}
7779

0 commit comments

Comments
 (0)