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

Add device to VGGish and send audio tensor to device #19

Merged
merged 1 commit into from
Apr 8, 2021

Conversation

dfan
Copy link
Contributor

@dfan dfan commented Sep 14, 2020

Addresses #14

Now the device will automatically be detected depending on what hardware which the code is running on. Both the model and the input audio tensors will be sent to the same device. This fixes device-related errors when running inference on GPU.

Tested with PyTorch 1.4

@dfan dfan mentioned this pull request Sep 14, 2020
@dfan
Copy link
Contributor Author

dfan commented Oct 22, 2020

Can someone take a look?

@harritaylor harritaylor merged commit 4670116 into harritaylor:master Apr 8, 2021
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.

2 participants