Skip to content

Commit

Permalink
Apply 1 suggestion(s) to 1 file(s)
Browse files Browse the repository at this point in the history
  • Loading branch information
Narcon Nicolas authored and Cresson Remi committed Sep 13, 2022
1 parent 0c58c8f commit b5eb853
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions otbtf/tfrecords.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ def read(self, batch_size, target_keys, n_workers=1, drop_remainder=True, shuffl
:param num_parallel_calls: number of parallel calls for the parsing + preprocessing step
:param kwargs: some keywords arguments for preprocessing_fn
"""
for file in [self.output_types_file, self.output_shapes_file]:
assert self.output_types, f"The file {file} is missing!"
for dic, file in zip([self.output_types, self.output_shapes], [self.output_types_file, self.output_shapes_file]):
assert dic, f"The file {file} is missing!"

options = tf.data.Options()
if shuffle_buffer_size:
Expand Down

0 comments on commit b5eb853

Please sign in to comment.