You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When moving the tensor to the target device (MPS in my case), I get sometimes the correct default (0.0) but sometimes uninitialized numbers, screwing up everything.
Environment
TorchMetrics version (if build from source, add commit SHA): 1.7.1
Python & PyTorch Version (e.g., 1.0): Python 3.12.10, PyTorch 2.7.0
Any other relevant information such as OS (e.g., Linux): macOS, Darwin Kernel Version 24.4.0
The text was updated successfully, but these errors were encountered:
🐛 Bug
There's an apparent race condition here:
torchmetrics/src/torchmetrics/utilities/compute.py
Lines 77 to 78 in e790935
When moving the tensor to the target device (MPS in my case), I get sometimes the correct default (
0.0
) but sometimes uninitialized numbers, screwing up everything.Environment
1.7.1
The text was updated successfully, but these errors were encountered: