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
e13c460a
Commit
e13c460a
authored
9 months ago
by
Tim Tobias Bauerle
Browse files
Options
Downloads
Patches
Plain Diff
Changed to new model loading in controller
parent
e71994eb
No related branches found
No related tags found
1 merge request
!18
Merge in main
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
edml/controllers/base_controller.py
+2
-2
2 additions, 2 deletions
edml/controllers/base_controller.py
with
2 additions
and
2 deletions
edml/controllers/base_controller.py
+
2
−
2
View file @
e13c460a
...
...
@@ -6,7 +6,7 @@ import torch
from
edml.controllers.early_stopping
import
create_early_stopping_callback
from
edml.core.device
import
DeviceRequestDispatcher
from
edml.
helpers.load_model
import
get_models
from
edml.
core.start_device
import
_
get_models
from
edml.helpers.logging
import
SimpleLogger
,
create_logger
from
edml.helpers.metrics
import
ModelMetricResultContainer
from
edml.helpers.types
import
DeviceBatteryStatus
...
...
@@ -41,7 +41,7 @@ class BaseController(abc.ABC):
)
# if no weights are loaded, initialize the models randomly and set them on all devices
client_model
,
server_model
=
get_models
(
self
.
cfg
)
client_model
,
server_model
=
_
get_models
(
self
.
cfg
)
self
.
_set_weights_on_all_devices
(
client_model
.
state_dict
(),
on_client
=
True
,
wait_for_ready
=
True
)
...
...
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