Skip to content

Commit 1c8baf4

Browse files
author
Hanyu Cui
committed
Ran ./update-tf-proto.sh 1.15.0-rc3
1 parent 2b20d95 commit 1c8baf4

File tree

5 files changed

+25
-4
lines changed

5 files changed

+25
-4
lines changed

src/main/protobuf/tensorflow/core/framework/node_def.proto

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import "tensorflow/core/framework/attr_value.proto";
1111
message NodeDef {
1212
// The name given to this operator. Used for naming inputs,
1313
// logging, visualization, etc. Unique within a single GraphDef.
14-
// Must match the regexp "[A-Za-z0-9.][A-Za-z0-9_./]*".
14+
// Must match the regexp "[A-Za-z0-9.][A-Za-z0-9_>./]*".
1515
string name = 1;
1616

1717
// The operation name. There may be custom parameters in attrs.
@@ -70,6 +70,15 @@ message NodeDef {
7070
// be {A, B}. This information can be used to map errors originating at the
7171
// current node to some top level source code.
7272
repeated string original_node_names = 1;
73+
74+
// This is intended to store the list of names of the functions from the
75+
// original graph that this node was derived. For example if this node, say
76+
// C, was result of a fusion of node A in function FA and node B in function
77+
// FB, then `original_funcs` would be {FA, FB}. If the node is in the top
78+
// level graph, the `original_func` is empty. This information, with the
79+
// `original_node_names` can be used to map errors originating at the
80+
// current ndoe to some top level source code.
81+
repeated string original_func_names = 2;
7382
};
7483

7584
// This stores debug information associated with the node.

src/main/protobuf/tensorflow/core/framework/op_def.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import "tensorflow/core/framework/types.proto";
1414
// LINT.IfChange
1515
message OpDef {
1616
// Op names starting with an underscore are reserved for internal use.
17-
// Names should be CamelCase and match the regexp "[A-Z][a-zA-Z0-9_]*".
17+
// Names should be CamelCase and match the regexp "[A-Z][a-zA-Z0-9>_]*".
1818
string name = 1;
1919

2020
// For describing inputs and outputs.

src/main/protobuf/tensorflow/core/framework/resource_handle.proto

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ option java_multiple_files = true;
77
option java_package = "org.tensorflow.framework";
88
option go_package = "github.com/tensorflow/tensorflow/tensorflow/go/core/framework";
99

10+
import "tensorflow/core/framework/tensor_shape.proto";
11+
import "tensorflow/core/framework/types.proto";
12+
1013
// Protocol buffer representing a handle to a tensorflow resource. Handles are
1114
// not valid across executions, but can be serialized back and forth from within
1215
// a single run.
@@ -27,4 +30,13 @@ message ResourceHandleProto {
2730
// For debug-only, the name of the type pointed to by this handle, if
2831
// available.
2932
string maybe_type_name = 5;
33+
34+
// Protocol buffer representing a pair of (data type, tensor shape).
35+
message DtypeAndShape {
36+
DataType dtype = 1;
37+
TensorShapeProto shape = 2;
38+
}
39+
40+
// Data types and shapes for the underlying resource.
41+
repeated DtypeAndShape dtypes_and_shapes = 6;
3042
};

src/main/protobuf/tensorflow/core/framework/types.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ enum DataType {
6767
DT_UINT64_REF = 123;
6868
}
6969
// LINT.ThenChange(
70-
// https://www.tensorflow.org/code/tensorflow/c/c_api.h,
70+
// https://www.tensorflow.org/code/tensorflow/c/tf_datatype.h,
7171
// https://www.tensorflow.org/code/tensorflow/go/tensor.go,
7272
// https://www.tensorflow.org/code/tensorflow/core/framework/tensor.cc,
7373
// https://www.tensorflow.org/code/tensorflow/core/framework/types.h,

src/main/protobuf/tensorflow/core/framework/variable.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ option java_outer_classname = "VariableProtos";
77
option java_multiple_files = true;
88
option java_package = "org.tensorflow.framework";
99

10-
// add go_package externally with copybara
10+
option go_package = "github.com/tensorflow/tensorflow/tensorflow/go/core/framework";
1111

1212
// Indicates when a distributed variable will be synced.
1313
enum VariableSynchronization {

0 commit comments

Comments
 (0)