Skip to content
This repository was archived by the owner on Aug 18, 2021. It is now read-only.

Commit 09de232

Browse files
committed
Merge branch 'master' of github.com:spro/practical-pytorch
2 parents 31fdb61 + 60a930f commit 09de232

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reinforce-gridworld/reinforce-gridworld.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def reset(self):
115115
"""Start a new episode by resetting grid and agent"""
116116
self.grid.reset()
117117
self.agent.reset()
118-
c = math.floor(self.grid.grid_size / 2)
118+
c = int(self.grid.grid_size / 2)
119119
self.agent.pos = (c, c)
120120

121121
self.t = 0

0 commit comments

Comments
 (0)