Skip to content

Commit

Permalink
changes interpolation call, closes acids-ircam#18
Browse files Browse the repository at this point in the history
  • Loading branch information
caillonantoine committed Apr 23, 2021
1 parent 0f6512a commit 1edc19e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ddsp/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def resample(x, factor: int):

def upsample(signal, factor):
signal = signal.permute(0, 2, 1)
signal = nn.functional.interpolate(signal, scale_factor=factor)
signal = nn.functional.interpolate(signal, size=signal.shape[-1] * factor)
return signal.permute(0, 2, 1)


Expand Down

0 comments on commit 1edc19e

Please sign in to comment.