Download ml-stable-diffusion/mlx/python/src/cuda.cpp from Fahad-S/FastVLM_SANA: direct link, hf CLI and curl.
- Browser
- Download file 393 Bytes
-
https://huggingface.co/Fahad-S/FastVLM_SANA/resolve/main/ml-stable-diffusion/mlx/python/src/cuda.cpp
- Command line
-
hf download hf://Fahad-S/FastVLM_SANA/ml-stable-diffusion/mlx/python/src/cuda.cpp
-
curl -L -o cuda.cpp https://huggingface.co/Fahad-S/FastVLM_SANA/resolve/main/ml-stable-diffusion/mlx/python/src/cuda.cpp
393 Bytes
| // Copyright © 2023-2025 Apple Inc. | |
| namespace mx = mlx::core; | |
| namespace nb = nanobind; | |
| void init_cuda(nb::module_& m) { | |
| nb::module_ cuda = m.def_submodule("cuda", "mlx.cuda"); | |
| cuda.def( | |
| "is_available", | |
| &mx::cu::is_available, | |
| R"pbdoc( | |
| Check if the CUDA back-end is available. | |
| )pbdoc"); | |
| } | |