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