|
2 | 2 |
|
3 | 3 | syntax = "proto3"; |
4 | 4 |
|
5 | | -option cc_enable_arenas = true; |
6 | | -option java_outer_classname = "ExampleParserConfigurationProtos"; |
7 | | -option java_multiple_files = true; |
8 | | -option java_package = "org.tensorflow.example"; |
9 | | -option go_package = "github.com/tensorflow/tensorflow/tensorflow/go/core/example"; |
10 | 5 | package tensorflow; |
11 | 6 |
|
12 | | -import "tensorflow/core/framework/tensor_shape.proto"; |
13 | 7 | import "tensorflow/core/framework/tensor.proto"; |
| 8 | +import "tensorflow/core/framework/tensor_shape.proto"; |
14 | 9 | import "tensorflow/core/framework/types.proto"; |
15 | 10 |
|
| 11 | +option cc_enable_arenas = true; |
| 12 | +option java_outer_classname = "ExampleParserConfigurationProtos"; |
| 13 | +option java_multiple_files = true; |
| 14 | +option java_package = "org.tensorflow.example"; |
| 15 | +option go_package = "github.com/tensorflow/tensorflow/tensorflow/go/core/example/example_parser_configuration_go_proto"; |
| 16 | + |
16 | 17 | message VarLenFeatureProto { |
17 | 18 | tensorflow.DataType dtype = 1; |
18 | 19 | string values_output_tensor_name = 2; |
19 | 20 | string indices_output_tensor_name = 3; |
20 | 21 | string shapes_output_tensor_name = 4; |
21 | | -}; |
| 22 | +} |
22 | 23 |
|
23 | 24 | message FixedLenFeatureProto { |
24 | 25 | tensorflow.DataType dtype = 1; |
25 | 26 | tensorflow.TensorShapeProto shape = 2; |
26 | 27 | tensorflow.TensorProto default_value = 3; |
27 | 28 | string values_output_tensor_name = 4; |
28 | | -}; |
| 29 | +} |
29 | 30 |
|
30 | 31 | message FeatureConfiguration { |
31 | 32 | oneof config { |
32 | 33 | FixedLenFeatureProto fixed_len_feature = 1; |
33 | 34 | VarLenFeatureProto var_len_feature = 2; |
34 | 35 | } |
35 | | -}; |
| 36 | +} |
36 | 37 |
|
37 | 38 | message ExampleParserConfiguration { |
38 | 39 | map<string, FeatureConfiguration> feature_map = 1; |
39 | | -}; |
| 40 | +} |
0 commit comments