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
Trainer.fit() should always run model training, even after it was already tested once via Trainer.test().
Trainer.test() should return metrics produced by LightningModule.test_end(). What is processing the whole test dataset through the model good for if not collecting performance metrics?
Environment
Click to view the environment.
PyTorch version: 1.3.1 [0/47800]
Is debug build: No
CUDA used to build PyTorch: 10.1.243
OS: Ubuntu 18.04.3 LTS
GCC version: (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0
CMake version: Could not collect
Python version: 3.6
Is CUDA available: Yes
CUDA runtime version: 10.0.130
GPU models and configuration: GPU 0: TITAN V
Nvidia driver version: 418.87.00
cuDNN version: Probably one of the following:
/usr/local/cuda-10.0/targets/x86_64-linux/lib/libcudnn.so.7
/usr/local/cuda-10.1/targets/x86_64-linux/lib/libcudnn.so.7
/usr/local/cuda-9.0/targets/x86_64-linux/lib/libcudnn.so.7
Versions of relevant libraries:
[pip3] botorch==0.1.4
[pip3] gpytorch==0.3.6
[pip3] numpy==1.17.4
[pip3] pytorch-lightning==0.5.3.2
[pip3] torch==1.3.1
[pip3] torchsummary==1.5.1
[pip3] torchvision==0.4.2
[conda] Could not collect
The text was updated successfully, but these errors were encountered:
After first call to Trainer.test() all subsequent calls to Trainer.fit() will NOT exhibit output behavior of Trainer.test(), Trainer.test() WILL return the metrics returned by LightningModule.test_end(). However, Trainer.test(model) will not return the metrics returned by LightningModule.test_end()
🐛 Bug
Trainer.test()
all subsequent calls toTrainer.fit()
exhibit output behavior ofTrainer.test()
Trainer.test()
doesn't print metrics (and returnsNone
) returned byLightningModule.test_end()
To Reproduce
Run following code in a
Python 3.6.8
env withtorch=1.3.1
andpytorch_lightning=0.5.3.2
installed:Code sample
Click to view the code sample.
Code output
Output of the sequence of calls
fit
->test
->fit
->fit
Expected behavior
Trainer.fit()
should always run model training, even after it was already tested once viaTrainer.test()
.Trainer.test()
should return metrics produced byLightningModule.test_end()
. What is processing the whole test dataset through the model good for if not collecting performance metrics?Environment
Click to view the environment.
The text was updated successfully, but these errors were encountered: