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
ignite logger triggers the following warning everytime (maybe) a new logger instance is created.
ignite/handlers/checkpoint.py:16: DeprecationWarning: `TorchScript` support forfunctional optimizers is deprecated and will be removedin a future PyTorch release. Consider using the `torch.compile` optimizer instead.
from torch.distributed.optim import ZeroRedundancyOptimizer
/opt/conda/lib/python3.11/site-packages/ignite/handlers/checkpoint.py:16: DeprecationWarning: `TorchScript` support forfunctional optimizers is deprecated and will be removedin a future PyTorch release. Consider using the `torch.compile` optimizer instead.
from torch.distributed.optim import ZeroRedundancyOptimizer
/opt/conda/lib/python3.11/site-packages/ignite/handlers/checkpoint.py:16: DeprecationWarning: `TorchScript` support forfunctional optimizers is deprecated and will be removedin a future PyTorch release. Consider using the `torch.compile` optimizer instead.
from torch.distributed.optim import ZeroRedundancyOptimizer
/opt/conda/lib/python3.11/site-packages/ignite/handlers/checkpoint.py:16: DeprecationWarning: `TorchScript` support forfunctional optimizers is deprecated and will be removedin a future PyTorch release. Consider using the `torch.compile` optimizer instead.
from torch.distributed.optim import ZeroRedundancyOptimizer
where the first warning is triggered by ignite.utils.setup_logger(), and the rest nprocs times warnings are triggered when the sub processes are initialized.
After some trials, I found that the warning is triggered once ignite.handlers.checkpoint is imported, for which simply importing ignite also leads to the warning.
$ python -c "import ignite"
/opt/conda/lib/python3.11/site-packages/ignite/handlers/checkpoint.py:16: DeprecationWarning: `TorchScript` support forfunctional optimizers is deprecated and will be removedin a future PyTorch release. Consider using the `torch.compile` optimizer instead.
from torch.distributed.optim import ZeroRedundancyOptimizer
$ python -c "import ignite.handlers"
/opt/conda/lib/python3.11/site-packages/ignite/handlers/checkpoint.py:16: DeprecationWarning: `TorchScript` support forfunctional optimizers is deprecated and will be removedin a future PyTorch release. Consider using the `torch.compile` optimizer instead.
from torch.distributed.optim import ZeroRedundancyOptimizer
Expect
Avoid the annoying warning message.
Environment
PyTorch Version: 2.5.1_cuda12.4_cudnn9_0
Ignite Version: 0.5.1
OS: Linux and Windows
How you installed Ignite: conda install -c pytorch ignite
Thanks for digging into the issue @sjiang95 !
Hopefully, new version pytorch wont raise this warning anymore. Nightly version should be silent, to confirm...
🐛 Bug description
ignite logger triggers the following warning everytime (maybe) a new logger instance is created.
Reproduce
Below is a snippet to reproduce it
stdout:
where the first warning is triggered by
ignite.utils.setup_logger()
, and the restnprocs
times warnings are triggered when the sub processes are initialized.After some trials, I found that the warning is triggered once
ignite.handlers.checkpoint
is imported, for which simply importing ignite also leads to the warning.Expect
Avoid the annoying warning message.
Environment
conda install -c pytorch ignite
relevant issues
#3318
Project-MONAI/MONAI#8060
Project-MONAI/MONAI#8017 (comment)
The text was updated successfully, but these errors were encountered: