-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug when running example in README.md #4367
Comments
Tried the code on colab. Not getting any error. |
I am getting the same error |
Can you guys reproduce this error with a colab notebook?? |
Same here, the code works fine on Google Colab. |
Fine for me in Colab. Still not working locally. |
I solved this problem by installing pytorch-lightning v.1.0.5 pip uninstall pytorch-lightning
pip install pytorch-lighting==1.0.5 In Google Colab, pytorch-lightning version is 1.0.5 while my local version was 0.9
|
I did the same. Also installed pytorch via conda. Still the same error. |
@Borda any idea? |
@awaelchli can we add running doctest (via Sphinx) also on all MarkDown files, what do you think? :] |
that's probably a bit overkill :) |
@Borda having the samples as regular unit tests would be already nice. Do not thing there is not an urgent need for doctest. |
well, how would utilize unit-tests as samples? the point with doctsring is that are examples and also tested so one code serves twice, compare to unit-tests which are usually in another folder (out of the package distribution) and then you just hope that if you a change in tests you update example accordingly... |
That's true. It's a bit hacky to simulate an out of package sample within a unit test. |
I reinstalled my OS and couldn't reproduce the error anymore. Will close the issue for now. |
@edenlightning I got the same problem. I fixed it by reinstalling a higher version TensorFlow (1.14+). |
Thanks for the update! |
🐛 Bug
When running the example in the README.md, the script crashes (Error: AttributeError: 'TypeError' object has no attribute 'message') when calling "trainer.fit(...)".
Appeared with 1.0.3, 1.0.2, 1.0.1, 1.0.0. The script works in 0.9.0 if you remove the line "self.log('train_loss', loss)".
Stacktrace:
To Reproduce
Expected behavior
Training should start.
Environment
The text was updated successfully, but these errors were encountered: