Open zeng1in opened 1 year ago
When my model is quantum classical hybrid model, I can use I use
torch.save(model.state_dict(), "model_dict.pt") model2 = QFCModel() model2.load_state_dict(torch.load("model_dict.pt"))
RuntimeError: Error (s) in loading state Dict for QFCModel: Unexpected key (s) in state Dict: "linear. weight", "linear. bias"
When my model is quantum classical hybrid model, I can use I use
RuntimeError: Error (s) in loading state Dict for QFCModel: Unexpected key (s) in state Dict: "linear. weight", "linear. bias"