np.mean breaks when called on a list of cuda tensors #32100
Labels
module: numpy
Related to numpy support, and also numpy compatibility of our operators
small
We think this is a small issue to fix. Consider knocking off high priority small issues
triaged
This issue has been looked at a team member, and triaged and prioritized into an appropriate module
Uh oh!
There was an error while loading. Please reload this page.
🐛 Bug
When using
np.mean
on a list oftorch.tensor
s, whose device is different fromtorch.device(type='cpu')
, an error is thrown.The rationale for considering this a bug is that,if pytorch supports
np.mean
somehow, that should be supported fully.Copying the tensors back to the cpu removes the error.
To Reproduce
Steps to reproduce the behavior:
Out:
Expected behavior
The operation should not raise
Error
s.Copying the tensors back to the cpu removes the error.
Environment
Additional context
The text was updated successfully, but these errors were encountered: