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