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
bae323af
"src/partition/vscode:/vscode.git/clone" did not exist on "74d88bf832a52b7f37b0b9383a9fdb0b91eda346"
Commit
bae323af
authored
Mar 09, 2017
by
Tong Damon Da
Browse files
add reuse parameter to RNNCells to make code compatible with tensorflow master code
parent
45b5353f
Changes
1
Hide 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 @
bae323af
...
...
@@ -110,7 +110,7 @@ class PTBModel(object):
# different than reported in the paper.
def
lstm_cell
():
return
tf
.
contrib
.
rnn
.
BasicLSTMCell
(
size
,
forget_bias
=
0.0
,
state_is_tuple
=
True
)
size
,
forget_bias
=
0.0
,
state_is_tuple
=
True
,
reuse
=
tf
.
get_variable_scope
().
reuse
)
attn_cell
=
lstm_cell
if
is_training
and
config
.
keep_prob
<
1
:
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