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
f6e23e56
Commit
f6e23e56
authored
Mar 20, 2017
by
Neal Wu
Browse files
Revert "add 'reuse' parameter to RNNCells to make code compatible with tensorflow master code"
parent
2c6d74b7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tutorials/rnn/ptb/ptb_word_lm.py
tutorials/rnn/ptb/ptb_word_lm.py
+1
-1
No files found.
tutorials/rnn/ptb/ptb_word_lm.py
View file @
f6e23e56
...
@@ -110,7 +110,7 @@ class PTBModel(object):
...
@@ -110,7 +110,7 @@ class PTBModel(object):
# different than reported in the paper.
# different than reported in the paper.
def
lstm_cell
():
def
lstm_cell
():
return
tf
.
contrib
.
rnn
.
BasicLSTMCell
(
return
tf
.
contrib
.
rnn
.
BasicLSTMCell
(
size
,
forget_bias
=
0.0
,
state_is_tuple
=
True
,
reuse
=
tf
.
get_variable_scope
().
reuse
)
size
,
forget_bias
=
0.0
,
state_is_tuple
=
True
)
attn_cell
=
lstm_cell
attn_cell
=
lstm_cell
if
is_training
and
config
.
keep_prob
<
1
:
if
is_training
and
config
.
keep_prob
<
1
:
def
attn_cell
():
def
attn_cell
():
...
...
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