Skip to content

Update LightGCN to remove torch requirement for prediction#617

Merged
darrylong merged 1 commit intoPreferredAI:masterfrom
darrylong:update-lightgcn
May 6, 2024
Merged

Update LightGCN to remove torch requirement for prediction#617
darrylong merged 1 commit intoPreferredAI:masterfrom
darrylong:update-lightgcn

Conversation

@darrylong
Copy link
Copy Markdown
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 qtuantruong May 6, 2024 18:03
@darrylong darrylong self-assigned this May 6, 2024
@qtuantruong
Copy link
Copy Markdown
Member

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
@darrylong darrylong deleted the update-lightgcn branch May 6, 2024 22:04
qtuantruong pushed a commit to qtuantruong/cornac that referenced this pull request Oct 25, 2025
qtuantruong pushed a commit to qtuantruong/cornac that referenced this pull request Oct 25, 2025
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.

2 participants