Skip to content

Commit

Permalink
Specify the agg_num param with BFT_args
Browse files Browse the repository at this point in the history
  • Loading branch information
private-mechanism committed Mar 27, 2023
1 parent 8657945 commit 6e79d8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion federatedscope/core/aggregators/krum_aggregator.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class KrumAggregator(ClientsAvgAggregator):
def __init__(self, model=None, device='cpu', config=None):
super(KrumAggregator, self).__init__(model, device, config)
self.byzantine_node_num = config.aggregator.byzantine_node_num
self.krum_agg_num = config.aggregator.krum.agg_num
self.krum_agg_num = config.aggregator.BFT_args.krum_agg_num
assert 2 * self.byzantine_node_num + 2 < config.federate.client_num, \
"it should be satisfied that 2*byzantine_node_num + 2 < client_num"

Expand Down

0 comments on commit 6e79d8a

Please sign in to comment.