File size: 351 Bytes
6c273f0 916419b 6c273f0 | 1 2 3 4 5 6 7 8 9 10 11 12 13 | #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) -> ()");
ops.impl("mel_spectrogram", torch::kCUDA, &mel_spectrogram);
}
REGISTER_EXTENSION(TORCH_EXTENSION_NAME)
|