Skip to content

Commit

Permalink
Update indexed_binary_mmap_reader.py
Browse files Browse the repository at this point in the history
  • Loading branch information
hariharan-devarajan authored Oct 30, 2024
1 parent 2ffa7cb commit ecc384a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dlio_benchmark/reader/indexed_binary_mmap_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ def load_index_file(self, global_sample_idx, filename, sample_index):
bin_buffer_mmap = np.memmap(sz_file, mode='r', order='C')
bin_buffer = memoryview(bin_buffer_mmap)
self.file_map_ibr[filename].append(np.frombuffer(bin_buffer, dtype=np.uint64))
bin_buffer_mmap = np.memmap(filename, mode='r', order='C')
bin_buffer = memoryview(bin_buffer_mmap)
self.buffer_map[filename] = np.frombuffer(bin_buffer, dtype=np.uint8)

@dlp.log
def load_index(self):
Expand Down

0 comments on commit ecc384a

Please sign in to comment.