Skip to content

Commit 30841a4

Browse files
authored
fix lint (#39)
1 parent 0d15a32 commit 30841a4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

compiler_opt/tools/sparse_bucket_generator.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ def _get_feature_info(
6060
6161
Args:
6262
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.
6465
6566
Returns:
6667
Dictionary of Tensor formats indexed by feature name.
@@ -140,7 +141,7 @@ def main(_) -> None:
140141
logging.info(gin.config_str())
141142
problem_config = registry.get_configuration()
142143

143-
"""Generate num_buckets quantiles for each feature."""
144+
# Generate num_buckets quantiles for each feature.
144145
tf.io.gfile.makedirs(FLAGS.output_dir)
145146
dataset = tf.data.Dataset.list_files(FLAGS.input)
146147
dataset = tf.data.TFRecordDataset(dataset)
@@ -151,7 +152,8 @@ def main(_) -> None:
151152
# empty examples during trace generation.
152153
for raw_example in dataset:
153154
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)
155157
logging.info('Found valid sequence_features dict: %s', sequence_features)
156158
break
157159
except IndexError:

0 commit comments

Comments
 (0)