Skip to content

model becames unpickable after calling trainer.predict(model, dataloader) #7567

@randommm

Description

@randommm

🐛 Bug

model becames unpickable after calling trainer.predict(model, dataloader), raises:
TypeError: can't pickle _thread.lock objects.

See attached example.

example_pickle_pl.zip

Screenshot at 2021-05-16 09-26-39

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinghelp wantedOpen to be worked onpriority: 1Medium priority task

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions