Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix type problem for GPU tensors #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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