We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93a8cd4 commit e77f07aCopy full SHA for e77f07a
example.py
@@ -6,7 +6,7 @@
6
# read an audio file
7
SAMPLE_RATE, sample = wavfile.read("./wavs/test.wav")
8
9
-# convert to tensor of shape (channels, samples)
+# convert to tensor of shape (batch_size, channels, samples)
10
dtype = sample.dtype
11
sample = torch.tensor(
12
[np.swapaxes(sample, 0, 1)], # (samples, channels) --> (channels, samples)
0 commit comments