You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Even though it is easy to save and load models in vanilla PyTorch, I encountered some trouble when I did the same thing in hook
Here is my code and corresponding result, I couldn't get the value of weights, instead of wrapped pointer Tensor. Please help
def state_dict(self):
res = {}
for model in self.models:
res = {k: v for k, v in model.state_dict().items()}
for k, v in res.items():
print('k, v', k, v)
return res
Question
How to save and load the checkpoint of splitNN?
Further Information
Even though it is easy to save and load models in vanilla PyTorch, I encountered some trouble when I did the same thing in hook
Here is my code and corresponding result, I couldn't get the value of weights, instead of wrapped pointer Tensor. Please help
The text was updated successfully, but these errors were encountered: