Skip to content

Commit

Permalink
resolved #278
Browse files Browse the repository at this point in the history
  • Loading branch information
hvgazula committed Mar 12, 2024
1 parent ed0d609 commit c67bd9e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nobrainer/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ def from_tfrecords(
)
block_length = len([0 for _ in first_shard])

if not n_volumes:
n_volumes = block_length * len(files)

dataset = dataset.interleave(
map_func=lambda x: tf.data.TFRecordDataset(
x, compression_type=compression_type
Expand Down

0 comments on commit c67bd9e

Please sign in to comment.