Skip to content

Commit

Permalink
Fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
mthrok committed Jul 30, 2020
1 parent a6707d5 commit 5b91caf
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions torchaudio/csrc/register.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,21 +47,20 @@ static auto registerGetInfo = torch::RegisterOperators().op(
"torchaudio::sox_io_get_info(str path) -> __torch__.torch.classes.torchaudio.SignalInfo info")
.catchAllKernel<decltype(sox_io::get_info), &sox_io::get_info>());

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()
Expand Down

0 comments on commit 5b91caf

Please sign in to comment.