"Array device must be same as the current device" issue "with nlp.pipe()" #11455
-
Greetings, I am running Spacy on Colab. However, I got the error code as follows:
However, without
So, I assume I should define GPU on |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Solved! by replacing code from
to
I am not sure about the logic here and do not know if it was mentioned before, but accidentally changing the lines worked! |
Beta Was this translation helpful? Give feedback.
Solved! by replacing code from
to
I am not sure about the logic here and do not know if it was mentioned before, but accidentally changing the lines worked!