Skip to content
Discussion options

You must be logged in to vote

Hi @nikita-galileo , there's no variable to check. Instead, you can try the thinc.api.get_current_ops function and check if the class is not an instance of NumpyOps. The best practice though is to just call prefer_gpu whenever necessary (or if you're uncertain).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nikita-galileo
Comment options

Answer selected by nikita-galileo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔮 thinc spaCy's machine learning library Thinc gpu Using spaCy on GPU
2 participants