Error: Can't pickle weakref objects #13214
Unanswered
JCocola
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am working on autoencoders that implement the gumbel softmax trick.
The code for the autoencoder is borrowed from University of Amsterdam's deep learning course.
In particular, the trainer is defined as
Everything works fine when using standard encoders and decoders (MLP or CNNs). But I run into the error
TypeError: can't pickle weakref objects
when using an encoder that implements the gumbel softmax trick.The encoder code is taken from here:
Full error message is below
Beta Was this translation helpful? Give feedback.
All reactions