Skip to content

Commit 4098670

Browse files
author
Adrià Garriga-Alonso
committed
Explain why ResetWithoutWrite with comment
1 parent 268c93d commit 4098670

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

envpool/sokoban/sokoban_envpool.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ void SokobanEnv::WriteState(float reward) {
183183
}
184184

185185
if (IsDone()) {
186+
// If this episode truncates or terminates, the observation should be the one for the next episode.
186187
ResetWithoutWrite();
187188
}
188189

0 commit comments

Comments
 (0)