Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tensorflow-federated
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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 JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KMSCAKKSCFKA AKFACAMADCAS
tensorflow-federated
Commits
1c2d00cd
Commit
1c2d00cd
authored
4 years ago
by
Zachary Garrett
Committed by
tensorflow-copybara
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix typos in type annotations.
PiperOrigin-RevId: 321378169
parent
f505b346
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tensorflow_federated/python/research/optimization/shared/fed_avg_schedule.py
+2
-2
2 additions, 2 deletions
...d/python/research/optimization/shared/fed_avg_schedule.py
with
2 additions
and
2 deletions
tensorflow_federated/python/research/optimization/shared/fed_avg_schedule.py
+
2
−
2
View file @
1c2d00cd
...
...
@@ -50,7 +50,7 @@ ModelWeights = collections.namedtuple('ModelWeights', 'trainable non_trainable')
def
_initialize_optimizer_vars
(
model
:
tff
.
learning
.
Model
,
optimizer
:
tf
.
keras
.
optimizers
.
Optimzer
):
optimizer
:
tf
.
keras
.
optimizers
.
Optim
i
zer
):
"""
Ensures variables holding the state of `optimizer` are created.
"""
delta
=
tf
.
nest
.
map_structure
(
tf
.
zeros_like
,
_get_weights
(
model
).
trainable
)
model_weights
=
_get_weights
(
model
)
...
...
@@ -276,7 +276,7 @@ class FederatedAveragingProcessAdapter(adapters.IterativeProcessPythonAdapter):
recording metrics.
"""
def
__init__
(
self
,
iterative_process
:
tff
.
temp
a
ltes
.
IterativeProcess
):
def
__init__
(
self
,
iterative_process
:
tff
.
templ
a
tes
.
IterativeProcess
):
self
.
_iterative_process
=
iterative_process
def
initialize
(
self
)
->
ServerState
:
...
...
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