Instructions to use galqiwi/hadamard_transform_kernels with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Kernels
How to use galqiwi/hadamard_transform_kernels with Kernels:
# !pip install kernels from kernels import get_kernel kernel = get_kernel("galqiwi/hadamard_transform_kernels") - Notebooks
- Google Colab
- Kaggle
File size: 384 Bytes
e4a8c54 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | #include <torch/library.h>
#include "registration.h"
#include "torch_binding.h"
TORCH_LIBRARY_EXPAND(TORCH_EXTENSION_NAME, ops) {
ops.def("hadamard_transform(Tensor! out, Tensor input, float scale) -> ()");
#if defined(CUDA_KERNEL) || defined(ROCM_KERNEL)
ops.impl("hadamard_transform", torch::kCUDA, &hadamard_transform);
#endif
}
REGISTER_EXTENSION(TORCH_EXTENSION_NAME)
|