Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Swarm Split Learning
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
INDA_ML
Swarm Split Learning
Commits
0e16a108
Commit
0e16a108
authored
10 months ago
by
Tim Tobias Bauerle
Browse files
Options
Downloads
Patches
Plain Diff
Fixed FL global optimizer state
parent
5c9a4a9c
Branches
Branches containing commit
No related tags found
1 merge request
!18
Merge in main
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
edml/core/device.py
+1
-1
1 addition, 1 deletion
edml/core/device.py
edml/tests/controllers/swarm_controller_test.py
+2
-2
2 additions, 2 deletions
edml/tests/controllers/swarm_controller_test.py
with
3 additions
and
3 deletions
edml/core/device.py
+
1
−
1
View file @
0e16a108
...
...
@@ -403,7 +403,7 @@ class NetworkDevice(Device):
Any
,
Any
,
int
,
ModelMetricResultContainer
,
DiagnosticMetricResultContainer
]:
"""
Returns client and server weights, the number of samples used for training and metrics
"""
client_weights
,
server_weights
,
metrics
,
diagnostic_metrics
,
_
=
(
client_weights
,
server_weights
,
metrics
,
_
,
diagnostic_metrics
=
(
self
.
server
.
train
(
devices
=
[
self
.
device_id
],
epochs
=
1
,
round_no
=
round_no
)
)
num_samples
=
self
.
client
.
get_num_samples
()
...
...
This diff is collapsed.
Click to expand it.
edml/tests/controllers/swarm_controller_test.py
+
2
−
2
View file @
0e16a108
...
...
@@ -34,7 +34,7 @@ class SwarmControllerTest(unittest.TestCase):
{
"
optimizer_state
"
:
42
},
)
client_weights
,
server_weights
,
metrics
,
diagnostic_metrics
,
optimizer_state
=
(
client_weights
,
server_weights
,
metrics
,
optimizer_state
,
diagnostic_metrics
=
(
self
.
swarm_controller
.
_swarm_train_round
(
None
,
None
,
"
d1
"
,
0
)
)
...
...
@@ -56,7 +56,7 @@ class SwarmControllerTest(unittest.TestCase):
def
test_split_train_round_with_inactive_server_device
(
self
):
self
.
mock
.
train_global_on
.
return_value
=
False
client_weights
,
server_weights
,
metrics
,
diagnostic_metrics
,
optimizer_state
=
(
client_weights
,
server_weights
,
metrics
,
optimizer_state
,
diagnostic_metrics
=
(
self
.
swarm_controller
.
_swarm_train_round
(
None
,
None
,
"
d1
"
,
0
)
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment