()
| 49 | |
| 50 | |
| 51 | def load_cuda_kernels(): |
| 52 | global lsh_cumulation |
| 53 | if not is_kernels_available(): |
| 54 | raise ImportError("kernels is not installed, please install it with `pip install kernels`") |
| 55 | from ...integrations.hub_kernels import get_kernel |
| 56 | |
| 57 | yoso = get_kernel("kernels-community/yoso") |
| 58 | lsh_cumulation = yoso.lsh_cumulation |
| 59 | |
| 60 | |
| 61 | def to_contiguous(input_tensors): |
no test coverage detected