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
29d2f18a
Commit
29d2f18a
authored
5 years ago
by
Zachary Garrett
Browse files
Options
Downloads
Patches
Plain Diff
Use compat.v1 API to be TF 2.0 compatible
PiperOrigin-RevId: 272519083
parent
97dd1496
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tensorflow_federated/python/core/backends/mapreduce/test_utils.py
+1
-1
1 addition, 1 deletion
...ow_federated/python/core/backends/mapreduce/test_utils.py
with
1 addition
and
1 deletion
tensorflow_federated/python/core/backends/mapreduce/test_utils.py
+
1
−
1
View file @
29d2f18a
...
...
@@ -182,7 +182,7 @@ def get_mnist_training_example():
weights
=
tf
.
Variable
(
initial_value
=
state
.
model
.
weights
,
name
=
'
weights
'
),
bias
=
tf
.
Variable
(
initial_value
=
state
.
model
.
bias
,
name
=
'
bias
'
))
with
tf
.
control_dependencies
([
tf
.
global_variables_initializer
()]):
with
tf
.
control_dependencies
([
tf
.
compat
.
v1
.
global_variables_initializer
()]):
init_model
=
tf
.
group
(
tf
.
assign
(
model_vars
.
weights
,
state
.
model
.
weights
),
tf
.
assign
(
model_vars
.
bias
,
state
.
model
.
bias
))
...
...
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