Vehicle-Anti-Theft-Face-Rec.../venv/Lib/site-packages/joblib/test/testutils.py

9 lines
251 B
Python
Raw Normal View History

2020-11-12 16:05:57 +00:00
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