forked from tensorflow/tensorflow
-
Notifications
You must be signed in to change notification settings - Fork 2
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
fdfc646
commit de39f73
Showing
4 changed files
with
233 additions
and
2 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
syntax = "proto3"; | ||
|
||
package tensorflow; | ||
|
||
import "tensorflow/core/framework/full_type.proto"; | ||
import "tensorflow/core/framework/tensor_shape.proto"; | ||
import "tensorflow/core/framework/types.proto"; | ||
|
||
option cc_enable_arenas = true; | ||
option go_package = "github.com/tensorflow/tensorflow/tensorflow/go/python/framework/cpp_shape_inference_go_proto"; | ||
|
||
message CppShapeInferenceResult { | ||
message HandleShapeAndType { | ||
reserved 3; | ||
|
||
TensorShapeProto shape = 1; | ||
DataType dtype = 2; | ||
FullTypeDef type = 4; | ||
} | ||
message HandleData { | ||
bool is_set = 1; | ||
|
||
// Only valid if <is_set>. | ||
repeated HandleShapeAndType shape_and_type = 2; | ||
} | ||
TensorShapeProto shape = 1; | ||
|
||
reserved 2; // was handle_shape | ||
reserved 3; // was handle_dtype | ||
HandleData handle_data = 4; | ||
} | ||
|
||
message CppShapeInferenceInputsNeeded { | ||
repeated int32 input_tensors_needed = 1; | ||
repeated int32 input_tensors_as_shapes_needed = 2; | ||
} |