Skip to content

Commit dfd13c4

Browse files
committed
make tensor contiguous.
1 parent 2efdc8e commit dfd13c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

beginner_source/audio_preprocessing_tutorial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def normalize(tensor):
213213
# Now let's experiment with a few of the other functionals and visualize their output. Taking our
214214
# spectogram, we can compute it's deltas:
215215

216-
computed = torchaudio.functional.compute_deltas(specgram, win_length=3)
216+
computed = torchaudio.functional.compute_deltas(specgram.contiguous(), win_length=3)
217217
print("Shape of computed deltas: {}".format(computed.shape))
218218

219219
plt.figure()

0 commit comments

Comments
 (0)