local_tensors in aggregator function #337
dskhanirfan
started this conversation in
General
Replies: 1 comment 2 replies
-
@dskhanirfan, Thanks for the interest in OpenFL. LocalTensor = namedtuple('LocalTensor', ['col_name', 'tensor', 'weight']) So, it has:
It happens here: https://github.com/intel/openfl/blob/031f0ce39e9cb96cbc205a163675f8ca213c5f7c/openfl/component/aggregator/aggregator.py#L756 collaborator_weights_unnormalized = {
c: self.collaborator_task_weight[TaskResultKey(task_name, c, self.round_number)]
for c in collaborators_for_task}
weight_total = sum(collaborator_weights_unnormalized.values())
collaborator_weight_dict = {
k: v / weight_total
for k, v in collaborator_weights_unnormalized.items()
} and |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In the aggregator function (e.g weighted_average_aggregation), what does local_tensors contain other than tensor_values and weight_values? and what is the difference in tensor_values and weight_values in local_tensors? How are the weight_values computed? Are the weight_values dependent on the dataset size of the collaborator?
Beta Was this translation helpful? Give feedback.
All reactions