Spaces:
Running
Running
Download python_embed/Lib/site-packages/joblib/test/testutils.py from Aluode/PerceptionLabPortable: direct link, hf CLI and curl.
- Browser
- Download file 252 Bytes
-
https://huggingface.co/spaces/Aluode/PerceptionLabPortable/resolve/main/python_embed/Lib/site-packages/joblib/test/testutils.py
- Command line
-
hf download hf://spaces/Aluode/PerceptionLabPortable/python_embed/Lib/site-packages/joblib/test/testutils.py
-
curl -L -o testutils.py https://huggingface.co/spaces/Aluode/PerceptionLabPortable/resolve/main/python_embed/Lib/site-packages/joblib/test/testutils.py
252 Bytes
| def return_slice_of_data(arr, start_idx, end_idx): | |
| return arr[start_idx:end_idx] | |
| def print_filename_and_raise(arr): | |
| from joblib._memmapping_reducer import _get_backing_memmap | |
| print(_get_backing_memmap(arr).filename) | |
| raise ValueError | |