Skip to content
This repository has been archived by the owner on Jan 26, 2025. It is now read-only.

Allow top_retrieval.py to handle --no_cuda #64

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

amadanmath
Copy link

Currently, if either entity or relation top_retrieval.py are invoked with --no_cuda, it breaks with the following error:

RuntimeError: Expected object of backend CUDA but got backend CPU for argument #3 'index'

The reason is the use of CUDA storage regardless of whether or not CUDA has been enabled.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant