adap / flower

Flower: A Friendly Federated AI Framework
https://flower.ai
Apache License 2.0
5.13k stars 881 forks source link

fix(baselines) Fix dimension order in weight slicing for OD layers #4207

Open QVQZZZ opened 2 months ago

QVQZZZ commented 2 months ago

Issue

Description

Weight slicing for OD layers has the input and output dimensions reversed.

In the weight parameters of Linear and Conv layers, the first dimension should be out_dim, and the second dimension should be in_dim.

Related issues/PRs

Proposal

Explanation

Reversed the order of input and output dimensions in the weight slicing for OD layers.

Checklist

Any other comments?

jafermarq commented 1 month ago

Thanks for opening the PR @QVQZZZ , let me loop in @stevelaskaridis and @SamuelHorvath who are the masterminds behind FjORD and added the baseline: what do you think about this 2-lines change?