You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
moves the signal to "cpu", but the following line is from apply_codec effect
waveform=self._to_2d()
If I'm not missing anything here, apply_codec effect is missing device handling.
Another small suggestion would be to have a flag that specifies if an effect does device movement. This will help users who are concerned about latency to effortlessly decide which effects to use, without having to look into every effect's implementation.
The text was updated successfully, but these errors were encountered:
Oh, that's fair. I can look into that and roll it into the next release!
Re: device movement, I think it should be possible to add something that moves back to the original device after the effect. The only reason for an effect to have device movement is because the underlying code doesn't support the original device. So I think we should just move stuff back to the original device, and allow users to just select latency by doing .cuda or .cpu calls between effects on the signal.
Given that
torchaudio.functional.apply_codec
currently only supports "cpu" device ref,apply_codec
effect may need moving the waveform to "cpu"The below line of
time_stretch
effectmoves the signal to "cpu", but the following line is from
apply_codec
effectIf I'm not missing anything here,
apply_codec
effect is missing device handling.Another small suggestion would be to have a flag that specifies if an effect does device movement. This will help users who are concerned about latency to effortlessly decide which effects to use, without having to look into every effect's implementation.
The text was updated successfully, but these errors were encountered: