diff --git a/torchaudio/csrc/register.cpp b/torchaudio/csrc/register.cpp index 0b4df1c04f4..c2816569f12 100644 --- a/torchaudio/csrc/register.cpp +++ b/torchaudio/csrc/register.cpp @@ -47,21 +47,20 @@ static auto registerGetInfo = torch::RegisterOperators().op( "torchaudio::sox_io_get_info(str path) -> __torch__.torch.classes.torchaudio.SignalInfo info") .catchAllKernel()); -static auto registerLoadAudioFile = torch::RegisterOperators() - .op( - torch::RegisterOperators::options() - .schema( - "torchaudio::sox_io_load_audio_file(str path, int frame_offset, int num_frames, bool normalize, bool channels_first) -> __torch__.torch.classes.torchaudio.TensorSignal signal") - .catchAllKernel< - decltype(sox_io::load_audio_file), - &sox_io::load_audio_file>()) - .op( - torch::RegisterOperators::options() - .schema( - "torchaudio::sox_io_load_audio_file_v1(str path, int frame_offset, int num_frames, bool normalize, bool channels_first, int sample_rate) -> __torch__.torch.classes.torchaudio.TensorSignal signal") - .catchAllKernel< - decltype(sox_io::load_audio_file_v1), - &sox_io::load_audio_file_v1>()); +static auto registerLoadAudioFile = + torch::RegisterOperators() + .op(torch::RegisterOperators::options() + .schema( + "torchaudio::sox_io_load_audio_file(str path, int frame_offset, int num_frames, bool normalize, bool channels_first) -> __torch__.torch.classes.torchaudio.TensorSignal signal") + .catchAllKernel< + decltype(sox_io::load_audio_file), + &sox_io::load_audio_file>()) + .op(torch::RegisterOperators::options() + .schema( + "torchaudio::sox_io_load_audio_file_v1(str path, int frame_offset, int num_frames, bool normalize, bool channels_first, int sample_rate) -> __torch__.torch.classes.torchaudio.TensorSignal signal") + .catchAllKernel< + decltype(sox_io::load_audio_file_v1), + &sox_io::load_audio_file_v1>()); static auto registerSaveAudioFile = torch::RegisterOperators().op( torch::RegisterOperators::options()