Skip to content
Snippets Groups Projects
Commit 6496eb69 authored by Jeffrey Wigger's avatar Jeffrey Wigger
Browse files

removing not needed to list; set_num_threads to 2;

parent e2ce6771
Branches main
No related tags found
No related merge requests found
......@@ -3,6 +3,7 @@ import json
import logging
import os
import torch
from matplotlib import pyplot as plt
from decentralizepy import utils
......@@ -420,6 +421,8 @@ class Node:
Other arguments
"""
torch.set_num_threads(2)
torch.set_num_interop_threads(1)
self.instantiate(
rank,
machine_id,
......
......@@ -155,9 +155,9 @@ class PartialModel(Sharing):
if not self.dict_ordered:
raise NotImplementedError
m["indices"] = G_topk.numpy().tolist()
m["indices"] = G_topk.numpy()
m["params"] = T_topk.numpy().tolist()
m["params"] = T_topk.numpy()
assert len(m["indices"]) == len(m["params"])
logging.info("Elements sending: {}".format(len(m["indices"])))
......
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