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