File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,8 @@ def _get_feature_info(
60
60
61
61
Args:
62
62
serialized_proto: serialized SequenceExample.
63
- features_to_not_process: A list of feature names that should not be processed
63
+ features_to_not_process: A list of feature names that should not be
64
+ processed.
64
65
65
66
Returns:
66
67
Dictionary of Tensor formats indexed by feature name.
@@ -140,7 +141,7 @@ def main(_) -> None:
140
141
logging .info (gin .config_str ())
141
142
problem_config = registry .get_configuration ()
142
143
143
- """ Generate num_buckets quantiles for each feature."""
144
+ # Generate num_buckets quantiles for each feature.
144
145
tf .io .gfile .makedirs (FLAGS .output_dir )
145
146
dataset = tf .data .Dataset .list_files (FLAGS .input )
146
147
dataset = tf .data .TFRecordDataset (dataset )
@@ -151,7 +152,8 @@ def main(_) -> None:
151
152
# empty examples during trace generation.
152
153
for raw_example in dataset :
153
154
try :
154
- sequence_features = _get_feature_info (raw_example , features_to_not_process )
155
+ sequence_features = _get_feature_info (raw_example ,
156
+ features_to_not_process )
155
157
logging .info ('Found valid sequence_features dict: %s' , sequence_features )
156
158
break
157
159
except IndexError :
You can’t perform that action at this time.
0 commit comments