Spaces:
Running
Running
Download python_embed/Lib/site-packages/joblib/_cloudpickle_wrapper.py from Aluode/PerceptionLabPortable: direct link, hf CLI and curl.
- Browser
- Download file 416 Bytes
-
https://huggingface.co/spaces/Aluode/PerceptionLabPortable/resolve/main/python_embed/Lib/site-packages/joblib/_cloudpickle_wrapper.py
- Command line
-
hf download hf://spaces/Aluode/PerceptionLabPortable/python_embed/Lib/site-packages/joblib/_cloudpickle_wrapper.py
-
curl -L -o _cloudpickle_wrapper.py https://huggingface.co/spaces/Aluode/PerceptionLabPortable/resolve/main/python_embed/Lib/site-packages/joblib/_cloudpickle_wrapper.py
416 Bytes
| """ | |
| Small shim of loky's cloudpickle_wrapper to avoid failure when | |
| multiprocessing is not available. | |
| """ | |
| from ._multiprocessing_helpers import mp | |
| def _my_wrap_non_picklable_objects(obj, keep_wrapper=True): | |
| return obj | |
| if mp is not None: | |
| from .externals.loky import wrap_non_picklable_objects | |
| else: | |
| wrap_non_picklable_objects = _my_wrap_non_picklable_objects | |
| __all__ = ["wrap_non_picklable_objects"] | |