-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move device_id processing to scheduler
- Loading branch information
1 parent
ade4564
commit 9cd6cb0
Showing
2 changed files
with
3 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,14 @@ | ||
# System Configuration | ||
|
||
system_config = { | ||
"num_users": 4, | ||
"experiment_path": "./experiments/", | ||
"dset": "cifar10", | ||
"dump_dir": "./expt_dump/", | ||
"dpath": "/data/unagi0/anakewat/imgs/", | ||
"seed": 2, | ||
"device_ids": { | ||
"iid_dispfl": {"node_0": [2], "node_1": [3], "node_2": [4], "node_3": [5], "node_4": [2]}, | ||
"iid_defkt": {"node_0": [4], "node_1": [4], "node_2": [4], "node_3": [4]}, | ||
"non_iid": {"node_0": [0], "node_1": [1], "node_2": [2], "node_3": [3]} | ||
}, | ||
"device_ids": {} | ||
"dataset_splits": { | ||
"iid": {"samples_per_user": 500}, | ||
"non_iid": {"samples_per_user": 32} | ||
} | ||
} | ||
|
||
|
||
def get_device_ids(algo): | ||
return system_config["device_ids"].get(algo, {}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters