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

Add RandomAlpha, Regular Graph

parent 7b367239
No related branches found
No related tags found
No related merge requests found
......@@ -159,6 +159,8 @@ class PartialModel(Sharing):
m["params"] = T_topk.numpy()
m["send_partial"] = True
assert len(m["indices"]) == len(m["params"])
logging.info("Elements sending: {}".format(len(m["indices"])))
......@@ -185,7 +187,7 @@ class PartialModel(Sharing):
state_dict of received
"""
if self.alpha > self.metadata_cap: # Share fully
if "send_partial" not in m:
return super().deserialized_model(m)
with torch.no_grad():
......
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