Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_tensorflow
Commits
c8be4828
Commit
c8be4828
authored
Jan 08, 2019
by
Taylor Robie
Browse files
update call to TPUStrategy
parent
2d51c3f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
official/recommendation/ncf_main.py
official/recommendation/ncf_main.py
+1
-1
No files found.
official/recommendation/ncf_main.py
View file @
c8be4828
...
@@ -95,7 +95,7 @@ def construct_estimator(model_dir, params):
...
@@ -95,7 +95,7 @@ def construct_estimator(model_dir, params):
os
.
environ
[
'TF_CONFIG'
]
=
json
.
dumps
(
tf_config_env
)
os
.
environ
[
'TF_CONFIG'
]
=
json
.
dumps
(
tf_config_env
)
distribution
=
tf
.
contrib
.
distribute
.
TPUStrategy
(
distribution
=
tf
.
contrib
.
distribute
.
TPUStrategy
(
tpu_cluster_resolver
,
100
,
params
[
"batches_per_step"
]
)
tpu_cluster_resolver
,
steps_per_run
=
100
)
else
:
else
:
distribution
=
distribution_utils
.
get_distribution_strategy
(
distribution
=
distribution_utils
.
get_distribution_strategy
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment