Skip to content

Commit 667663c

Browse files
mihowJoelMarcey
authored andcommitted
Fix typo in reinforcement learning tutorial (pytorch#361)
Changes "rescare" to "rescale"
1 parent 5e48246 commit 667663c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

intermediate_source/reinforcement_q_learning.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ def get_screen():
260260
cart_location + view_width // 2)
261261
# Strip off the edges, so that we have a square image centered on a cart
262262
screen = screen[:, :, slice_range]
263-
# Convert to float, rescare, convert to torch tensor
263+
# Convert to float, rescale, convert to torch tensor
264264
# (this doesn't require a copy)
265265
screen = np.ascontiguousarray(screen, dtype=np.float32) / 255
266266
screen = torch.from_numpy(screen)

0 commit comments

Comments
 (0)