-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tests: Correctly handle GPU-resident Tensorflow tensors #653
Conversation
@explosion-bot please test_gpu |
URL: https://buildkite.com/explosion-ai/thinc-gpu-test-suite/builds/61 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missed a possible simplification in my first review.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
* Tests: Correctly handle GPU-resident Tensorflow tensors * Simplify `is_supported_backend_array`
* Tests: Correctly handle GPU-resident Tensorflow tensors * Simplify `is_supported_backend_array`
* Tests: Correctly handle GPU-resident Tensorflow tensors * Simplify `is_supported_backend_array`
Tensorflow automatically allocates on the GPU if possible, which is something the tests below didn't correctly account for. Since the CI host machine's CUDA libraries were not correctly configured, TF silently always used the CPU thereby hiding this bug.