From 5b91caf8258572bcd7518dd49442463ba3d62217 Mon Sep 17 00:00:00 2001 From: moto <855818+mthrok@users.noreply.github.com> Date: Thu, 30 Jul 2020 17:27:12 +0000 Subject: [PATCH] Fix style --- torchaudio/csrc/register.cpp | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) 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()