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
3d6dc1dd
Commit
3d6dc1dd
authored
Sep 01, 2017
by
Yen-chi Chen
Browse files
In #2276, auto_parallel(metagraph, model) try to import google3
This will error when num_gpus > 1
parent
09a32f32
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tutorials/rnn/ptb/util.py
tutorials/rnn/ptb/util.py
+1
-1
No files found.
tutorials/rnn/ptb/util.py
View file @
3d6dc1dd
...
...
@@ -86,7 +86,7 @@ class UpdateCollection(object):
def
auto_parallel
(
metagraph
,
model
):
from
google3.third_party.
tensorflow.python.grappler
import
tf_optimizer
from
tensorflow.python.grappler
import
tf_optimizer
rewriter_config
=
rewriter_config_pb2
.
RewriterConfig
()
rewriter_config
.
optimizers
.
append
(
"autoparallel"
)
rewriter_config
.
auto_parallel
.
enable
=
True
...
...
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