PreferredAI / cornac

A Comparative Framework for Multimodal Recommender Systems
https://cornac.preferred.ai
Apache License 2.0
845 stars 138 forks source link

Update LightGCN to remove torch requirement for prediction #617

Closed darrylong closed 2 months ago

darrylong commented 2 months ago

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:

tqtg commented 2 months ago

LGTM!