Instructions to use cahlen/minkowski-spectrum-cuda with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Kernels
How to use cahlen/minkowski-spectrum-cuda with Kernels:
# !pip install kernels from kernels import get_kernel kernel = get_kernel("cahlen/minkowski-spectrum-cuda") - Notebooks
- Google Colab
- Kaggle
File size: 330 Bytes
728ed8c 3df8753 728ed8c | 1 2 3 4 5 6 7 8 9 10 | #include <torch/extension.h>
#include "torch_binding.h"
PYBIND11_MODULE(TORCH_EXTENSION_NAME, m) {
m.doc() = "Minkowski Question-Mark Singularity Spectrum CUDA kernel";
m.def("compute_spectrum", &compute_spectrum,
"Compute multifractal spectrum tau(q), alpha(q), f(alpha)",
py::arg("A_max"), py::arg("N"));
}
|