Closed kyoungrok0517 closed 4 years ago
Hello, thanks for letting us know, could you also share with us the model/trainer so we can replicate your problem... :]
Hi, thanks for the response. Here's my code and data. The error can be reproduced under pytorch-lightning >= 0.5.3.3
https://www.dropbox.com/sh/5dyq5dp5l8zfc3r/AAAiK-IoihpgdnJ3L8QzKAxNa?dl=0
pip install -e . && pip install -r requirements.txt
python ./code/trec2019/sparse/sparsenet/sparsenet_trainer.py --data_dir ./data
@kyoungrok0517 and what would be your expected behaviour, just ignore all parameters with none value?
I think that will be the best option. I expect that happens automatically inside the lightning library.
보낸 사람: Jirka Borovec notifications@github.com
보낸 날짜: Wednesday, March 4, 2020 3:40:59 AM
받는 사람: PyTorchLightning/pytorch-lightning pytorch-lightning@noreply.github.com
참조: Kyoungrok Jang kyoungrok.jang@gmail.com; Mention mention@noreply.github.com
제목: Re: [PyTorchLightning/pytorch-lightning] Logger emits exception when there's None
in hparams (#984)
@kyoungrok0517https://github.com/kyoungrok0517 and what would be your expected behaviour, just ignore all parameters with none value?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/PyTorchLightning/pytorch-lightning/issues/984?email_source=notifications&email_token=AAIAZ7CG4NMLHAFGWZTZQU3RFVFLXA5CNFSM4K6RL3L2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENUU3EY#issuecomment-594103699, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAIAZ7D2RH2S3JX523IFRULRFVFLXANCNFSM4K6RL3LQ.
This is fixed on master. See #1130. @Borda it can be closed.
To Reproduce
My hparams:
I see the following errors because I have
None
value in my hparams dictEnvironment
PyTorch version: 1.4.0 Is debug build: No CUDA used to build PyTorch: None
OS: Mac OSX 10.15.3 GCC version: Could not collect CMake version: version 3.16.1
Python version: 3.7 Is CUDA available: No CUDA runtime version: No CUDA GPU models and configuration: No CUDA Nvidia driver version: No CUDA cuDNN version: No CUDA
Versions of relevant libraries: [pip] numpy==1.18.1 [pip] pytorch-lightning==0.6.0 [pip] torch==1.4.0 [pip] torchvision==0.5.0 [conda] blas 1.0 mkl [conda] mkl 2019.4 233 [conda] mkl-service 2.3.0 py37hfbe908c_0 [conda] mkl_fft 1.0.15 py37h5e564d8_0 [conda] mkl_random 1.1.0 py37ha771720_0 [conda] pytorch 1.4.0 py3.7_0 pytorch [conda] pytorch-lightning 0.6.0 pypi_0 pypi [conda] torchvision 0.5.0 py37_cpu pytorch