-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[Fix] torch.new_tensor will cause device error when pytorch>=1.7 #465
Conversation
Can this be tested (in cpu mode)? |
Sure. The modification aims to guarantee that two tensors are in the same device. |
Okay then please add a test case for this ;) My understanding is that the current code is only tested on gpu mode, so it will slip through the ci |
No. Current code has been tested on CPU. It will not report error, because the tensors will be put on CPU by default. |
Codecov Report
@@ Coverage Diff @@
## master #465 +/- ##
==========================================
- Coverage 80.92% 80.36% -0.57%
==========================================
Files 189 190 +1
Lines 10149 10260 +111
Branches 1495 1533 +38
==========================================
+ Hits 8213 8245 +32
- Misses 1721 1783 +62
- Partials 215 232 +17
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
yeah your right |
No description provided.