Skip to content

Conversation

@HuangZiliAndy
Copy link

Fix type problem for GPU tensors

@danpovey
Copy link
Owner

danpovey commented Jan 10, 2020 via email

@KentoNishi
Copy link

I have a project where I need gpu functionality, so I'll go ahead and merge it into my own fork. Thanks @HuangZiliAndy :)

@danpovey
Copy link
Owner

I think it would make more sense (would be more efficient) to add a device class member and optional constructor arg.
.type_as() only changes the dtype, not the device, anyway, so it seems it wouldn't solve the stated problem.

@KentoNishi
Copy link

i can go ahead and implement that, unless you want to do it :) i'll be slower to write it than you for sure

@danpovey
Copy link
Owner

danpovey commented Jun 18, 2021 via email

@KentoNishi
Copy link

hm, i just found out that torchaudio.transforms.Resample exists. i'll give that a try instead :P

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants