Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
seminar-breakout
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shashank Suhas
seminar-breakout
Commits
a64d25cf
Commit
a64d25cf
authored
Oct 17, 2017
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix deprecated usage in examples
parent
12192d59
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
examples/PennTreebank/PTB-LSTM.py
examples/PennTreebank/PTB-LSTM.py
+1
-1
No files found.
examples/PennTreebank/PTB-LSTM.py
View file @
a64d25cf
...
@@ -150,7 +150,7 @@ def get_config():
...
@@ -150,7 +150,7 @@ def get_config():
[
ScalarStats
([
'cost'
],
prefix
=
'test'
)],
tower_name
=
'InferenceTowerTest'
),
[
ScalarStats
([
'cost'
],
prefix
=
'test'
)],
tower_name
=
'InferenceTowerTest'
),
RunOp
(
lambda
:
M
.
reset_lstm_state
()),
RunOp
(
lambda
:
M
.
reset_lstm_state
()),
CallbackFactory
(
CallbackFactory
(
trigger
_epoch
=
lambda
self
:
trigger
=
lambda
self
:
[
self
.
trainer
.
monitors
.
put_scalar
(
[
self
.
trainer
.
monitors
.
put_scalar
(
'validation_perplexity'
,
'validation_perplexity'
,
np
.
exp
(
self
.
trainer
.
monitors
.
get_latest
(
'validation_cost'
)
/
SEQ_LEN
)),
np
.
exp
(
self
.
trainer
.
monitors
.
get_latest
(
'validation_cost'
)
/
SEQ_LEN
)),
...
...
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