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
55e6e387
Commit
55e6e387
authored
Sep 08, 2017
by
Toby Boyd
Committed by
GitHub
Sep 08, 2017
Browse files
Merge pull request #2321 from mark86092/ptb-fix
Fix import error in RNN ptb tutorial
parents
64f0ead2
3d6dc1dd
Changes
1
Show 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 @
55e6e387
...
@@ -86,7 +86,7 @@ class UpdateCollection(object):
...
@@ -86,7 +86,7 @@ class UpdateCollection(object):
def
auto_parallel
(
metagraph
,
model
):
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
=
rewriter_config_pb2
.
RewriterConfig
()
rewriter_config
.
optimizers
.
append
(
"autoparallel"
)
rewriter_config
.
optimizers
.
append
(
"autoparallel"
)
rewriter_config
.
auto_parallel
.
enable
=
True
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