(strict=True)
| 8 | |
| 9 | |
| 10 | def _cupy(strict=True): |
| 11 | try: |
| 12 | import cupy |
| 13 | except ImportError as e: |
| 14 | if strict: |
| 15 | raise type(e)("Please install `cupy` to use `CupyBackendEntrypoint`") from e |
| 16 | return None |
| 17 | return cupy |
| 18 | |
| 19 | |
| 20 | def _da_with_cupy_meta(attr, *args, meta=None, **kwargs): |
no outgoing calls
no test coverage detected