-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Closed
Labels
bugSomething isn't workingSomething isn't workinghelp wantedOpen to be worked onOpen to be worked onloggingRelated to the `LoggerConnector` and `log()`Related to the `LoggerConnector` and `log()`priority: 0High priority taskHigh priority task
Description
🐛 Bug
After an update from 1.3.0 to 1.4.2, existing code breaks with:
File "/home/rongcuid/miniconda3/envs/pytorch/lib/python3.8/site-packages/pytorch_lightning/trainer/connectors/logger_connector/result.py", line 464, in log
raise MisconfigurationException(
pytorch_lightning.utilities.exceptions.MisconfigurationException: You called `self.log(loss/validate, ...)` twice in `validation_step` with different arguments. This is not allowed
There is only one self.log statement in my validation loop. However, there is an identical counterpart in the training step, which uses "loss/train" as name. It worked in 1.3.
To Reproduce
Expected behavior
Logs validation loss correctly.
Environment
* CUDA:
- GPU:
- NVIDIA GeForce GTX 1080
- available: True
- version: 10.2
* Packages:
- numpy: 1.21.1
- pyTorch_debug: False
- pyTorch_version: 1.9.0
- pytorch-lightning: 1.4.2
- tqdm: 4.62.1
* System:
- OS: Linux
- architecture:
- 64bit
- ELF
- processor: x86_64
- python: 3.8.11
- version: #21~1626191760~20.04~55de9c3-Ubuntu SMP Wed Jul 21 20:31:55 UTC
Additional context
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinghelp wantedOpen to be worked onOpen to be worked onloggingRelated to the `LoggerConnector` and `log()`Related to the `LoggerConnector` and `log()`priority: 0High priority taskHigh priority task