File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,8 @@ AudioEncoder::AudioEncoder(
4747 wf_.dtype () == torch::kFloat32 ,
4848 " waveform must have float32 dtype, got " ,
4949 wf_.dtype ());
50+ // TODO-ENCODING check contiguity of the input wf to ensure that it is indeed
51+ // planar (fltp).
5052 TORCH_CHECK (
5153 wf_.dim () == 2 , " waveform must have 2 dimensions, got " , wf_.dim ());
5254
@@ -97,9 +99,6 @@ AudioEncoder::AudioEncoder(
9799 // what the `.sample_fmt` defines.
98100 avCodecContext_->sample_fmt = findOutputSampleFormat (*avCodec);
99101
100- // TODO-ENCODING check contiguity of the input wf to ensure that it is indeed
101- // planar (fltp).
102-
103102 int numChannels = static_cast <int >(wf_.sizes ()[0 ]);
104103 TORCH_CHECK (
105104 // TODO-ENCODING is this even true / needed? We can probably support more
You can’t perform that action at this time.
0 commit comments