Skip to content
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

no able to add abstract methods to class #5

Open
Fan-Luo opened this issue Aug 21, 2020 · 0 comments
Open

no able to add abstract methods to class #5

Fan-Luo opened this issue Aug 21, 2020 · 0 comments

Comments

@Fan-Luo
Copy link

Fan-Luo commented Aug 21, 2020

Hi,
I got an error with pytorch_lightning when splitting configure_optimizers and training_step functions in different cells from the definition of myclass, which is inherited from pl.LightningModule. If configure_optimizers and training_step functions are merged into the cell where the def of the class is, the error disappears, but not with %%add_to myclass.

TypeError: Can't instantiate abstract class myclass with abstract methods configure_optimizers, training_step

By the way, thank you for developing this great tool!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant