Skip to content

how to save model for test? #3

Open
@w5688414

Description

@w5688414

I want to save the trained model, and load it for prediction, here is my code:
`
saver = ModelSaver("./cache/model_ckpt_100.pkl")

model=ModelLoader.load_pytorch_model("./cache/model_ckpt_100.pkl")

ModelLoader.load_pytorch(model,"./cache/model_ckpt_100.pkl")
tester = Tester(datasets['test'], model, metrics=AccuracyMetric())
tester.test()
`
but it doesn't work, Can the author provide a way for prediction after saving the model

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