Skip to content

Commit 2c4e9da

Browse files
feat: pass parallel to load
1 parent 42f42ed commit 2c4e9da

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

crackle/util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ def bload(filelike, allow_mmap=False) -> bytes:
6868
"""Load the binary file."""
6969
return _load(filelike, allow_mmap=allow_mmap)
7070

71-
def load(filelike, label:Optional[int] = None) -> np.ndarray:
71+
def load(filelike, label:Optional[int] = None, parallel:int = 0) -> np.ndarray:
7272
"""Load an image from a file-like object or file path."""
73-
return decompress(_load(filelike), label=label)
73+
return decompress(_load(filelike), label=label, parallel=parallel)
7474

7575
def load_numpy(filelike):
7676
f = io.BytesIO(_load(filelike))

0 commit comments

Comments
 (0)