-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e166112
commit 78fa64f
Showing
7 changed files
with
77 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
syntax = "proto3"; | ||
|
||
package tensorboard; | ||
|
||
option cc_enable_arenas = true; | ||
option java_outer_classname = "GraphDebugInfoProtos"; | ||
option java_multiple_files = true; | ||
option java_package = "org.tensorflow.framework"; | ||
option go_package = "github.com/tensorflow/tensorflow/tensorflow/go/core/protobuf/for_core_protos_go_proto"; | ||
|
||
message GraphDebugInfo { | ||
// This represents a file/line location in the source code. | ||
message FileLineCol { | ||
// File name index, which can be used to retrieve the file name string from | ||
// `files`. The value should be between 0 and (len(files)-1) | ||
int32 file_index = 1; | ||
|
||
// Line number in the file. | ||
int32 line = 2; | ||
|
||
// Col number in the file line. | ||
int32 col = 3; | ||
|
||
// Name of function contains the file line. | ||
string func = 4; | ||
|
||
// Source code contained in this file line. | ||
string code = 5; | ||
} | ||
|
||
// This represents a stack trace which is a ordered list of `FileLineCol`. | ||
message StackTrace { | ||
// Each line in the stack trace. | ||
repeated FileLineCol file_line_cols = 1; | ||
} | ||
|
||
// This stores all the source code file names and can be indexed by the | ||
// `file_index`. | ||
repeated string files = 1; | ||
|
||
// This maps a node name to a stack trace in the source code. | ||
// The map key is a mangling of the containing function and op name with | ||
// syntax: | ||
// op.name '@' func_name | ||
// For ops in the top-level graph, the func_name is the empty string. | ||
// Note that op names are restricted to a small number of characters which | ||
// exclude '@', making it impossible to collide keys of this form. Function | ||
// names accept a much wider set of characters. | ||
// It would be preferable to avoid mangling and use a tuple key of (op.name, | ||
// func_name), but this is not supported with protocol buffers. | ||
map<string, StackTrace> traces = 2; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters