Skip to content
Snippets Groups Projects
Commit 327827e0 authored by Rishi Sharma's avatar Rishi Sharma
Browse files

Fix Partial Model

parent 43157737
No related branches found
No related tags found
No related merge requests found
......@@ -58,7 +58,7 @@ class PartialModel(Sharing):
shared_params = json.load(inf)
else:
shared_params = dict()
shared_params["order"] = self.model.state_dict().keys()
shared_params["order"] = list(self.model.state_dict().keys())
shapes = dict()
for k, v in self.model.state_dict().items():
shapes[k] = list(v.shape)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment