Skip to content
This repository was archived by the owner on Jan 10, 2025. It is now read-only.
This repository was archived by the owner on Jan 10, 2025. It is now read-only.

TypeError: cannot pickle 'WeakMethod' object #15

@Naclzno

Description

@Naclzno

Environment: pytorch2.0.1
I would like to ask if this problem is caused by the pytorch version
source code(trainer.py):
def save_checkpoint(to_save, logdir, suffix=""):
torch.save(to_save, logdir +"/FourDenoiseNet" + suffix)

save_checkpoint(state, self.log, suffix="")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions