Skip to content

Commit

Permalink
[Cleanup] Add comments for fields.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 626123599
  • Loading branch information
tensorflower-gardener committed Apr 18, 2024
1 parent 46cf5cd commit 77c4dca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tensorflow/core/framework/resource_handle.proto
Expand Up @@ -34,7 +34,9 @@ message ResourceHandleProto {

// Protocol buffer representing a pair of (data type, tensor shape).
message DtypeAndShape {
// Data type of the tensor.
DataType dtype = 1;
// Shape of the tensor.
TensorShapeProto shape = 2;
}

Expand Down
1 change: 1 addition & 0 deletions tensorflow/core/framework/tensor.proto
Expand Up @@ -14,6 +14,7 @@ option go_package = "github.com/tensorflow/tensorflow/tensorflow/go/core/framewo

// Protocol buffer representing a tensor.
message TensorProto {
// Data type of the tensor.
DataType dtype = 1;

// Shape of the tensor. TODO(touts): sort out the 0-rank issues.
Expand Down

0 comments on commit 77c4dca

Please sign in to comment.