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

Update LightGCN to remove torch requirement for prediction #617

Merged
merged 1 commit into from
May 6, 2024

Conversation

darrylong
Copy link
Member

Description

This PR removes the need of torch dependency for prediction, as it uses numpy instead.
Declaring a self.device with cuda would lead to the attempt on loading torch on pickle load, which throws an error should it not be installed.

Related Issues

Checklist:

  • I have added tests.
  • I have updated the documentation accordingly.
  • I have updated README.md (if you are adding a new model).
  • I have updated examples/README.md (if you are adding a new example).
  • I have updated datasets/README.md (if you are adding a new dataset).

@darrylong darrylong requested a review from tqtg May 6, 2024 18:03
@darrylong darrylong self-assigned this May 6, 2024
@tqtg
Copy link
Member

tqtg commented May 6, 2024

LGTM!

@darrylong darrylong added the bug Something isn't working label May 6, 2024
@darrylong darrylong merged commit 5de0a8e into PreferredAI:master May 6, 2024
24 checks passed
@darrylong darrylong deleted the update-lightgcn branch May 6, 2024 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants