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
As title shows, when I training the model, there is a warning:
C:\Users\Jing\miniconda3\Lib\site-packages\monai\inferers\utils.py:370:
UserWarning:
Using a non-tuple sequence for multidimensional indexing is deprecated and will be changed in pytorch 2.9;
use x[tuple(seq)] instead of x[seq].
In pytorch 2.9 this will be interpreted as tensor index,
x[torch.tensor(seq)], which will result either in an error or a different result (Triggered internally at
C:\actions-runner\_work\pytorch\pytorch\pytorch\torch\csrc\autograd\python_variable_indexing.cpp:351.)
I use torch 2.9.1 + monai 1.5.1.
Does anyone know how to solve this warning?
Thank you in advance!
Jing
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
As title shows, when I training the model, there is a warning:
I use
torch 2.9.1 + monai 1.5.1.Does anyone know how to solve this warning?
Thank you in advance!
Jing
Beta Was this translation helpful? Give feedback.
All reactions