Skip to content

Why you saved the entire model instead of state_dict .. ? #59

@PouyaNF

Description

@PouyaNF

Hi Diana
for using torch.load('saved_model') there should be all modules that existed in saving time available otherwise it get an error!!

If you store a model directly via torch.save(model, file_path), you would need to restore the file and folder structure in order to load this model again!!

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