Download ext-torch/torch_binding.cpp from kernels-community/mel_spectrogram: direct link, hf CLI and curl.
- Browser
- Download file 367 Bytes
-
https://huggingface.co/kernels-community/mel_spectrogram/resolve/refs%2Fpr%2F2/ext-torch/torch_binding.cpp
- Command line
-
hf download hf://kernels-community/mel_spectrogram@refs/pr/2/ext-torch/torch_binding.cpp
-
curl -L -o torch_binding.cpp https://huggingface.co/kernels-community/mel_spectrogram/resolve/refs%2Fpr%2F2/ext-torch/torch_binding.cpp
367 Bytes
| TORCH_LIBRARY_EXPAND(TORCH_EXTENSION_NAME, ops) { | |
| ops.def("mel_spectrogram(Tensor! out, Tensor samples, Tensor filters, int fft_size, int fft_step) -> ()", &mel_spectrogram); | |
| ops.impl("mel_spectrogram", torch::kCUDA, &mel_spectrogram); | |
| } | |
| REGISTER_EXTENSION(TORCH_EXTENSION_NAME) | |