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
a62ce63a
Commit
a62ce63a
authored
Aug 05, 2016
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix in limitlength
parent
8e5bcbe6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
tensorpack/RL/common.py
tensorpack/RL/common.py
+2
-1
No files found.
tensorpack/RL/common.py
View file @
a62ce63a
...
@@ -54,9 +54,10 @@ class LimitLengthPlayer(ProxyPlayer):
...
@@ -54,9 +54,10 @@ class LimitLengthPlayer(ProxyPlayer):
self
.
cnt
+=
1
self
.
cnt
+=
1
if
self
.
cnt
>=
self
.
limit
:
if
self
.
cnt
>=
self
.
limit
:
isOver
=
True
isOver
=
True
if
isOver
:
self
.
finish_episode
()
self
.
finish_episode
()
self
.
restart_episode
()
self
.
restart_episode
()
if
isOver
:
self
.
cnt
=
0
return
(
r
,
isOver
)
return
(
r
,
isOver
)
def
restart_episode
(
self
):
def
restart_episode
(
self
):
...
...
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