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

device of unit_locations should follow tensor_input #171

Merged
merged 1 commit into from
Jul 17, 2024

Conversation

aryopg
Copy link
Contributor

@aryopg aryopg commented Jul 16, 2024

Description

In modeling_utils.py, there is a part of the code that causes error when using GPU. It seems that it's because the unit_locations variable was forced to be in cpu.

Testing Done

No test done yet, just to flag the issue and to raise the attention of the main contributors

Checklist:

  • My PR title strictly follows the format: [Your Priority] Your Title
  • I have attached the testing log above
  • I provide enough comments to my code
  • I have changed documentations
  • I have added tests for my changes

@frankaging
Copy link
Collaborator

@PinetreePantry can you take a look at this one? thanks!

@PinetreePantry PinetreePantry merged commit 5b37b24 into stanfordnlp:main Jul 17, 2024
2 checks passed
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