mel_spectrogram / ext-torch /torch_binding.cpp
drbh's picture
drbh HF Staff
danieldk's picture
danieldk HF Staff
Sync with kernel-builder changes (#1)
1bc618b verified
Raw
History Blame
367 Bytes
#include <torch/library.h>
#include "registration.h"
#include "torch_binding.h"
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)