PacktPublishing / Deep-Reinforcement-Learning-Hands-On

Hands-on Deep Reinforcement Learning, published by Packt
MIT License
2.83k stars 1.28k forks source link

Purpose of new_state = new_state #37

Closed icompute386 closed 5 years ago

icompute386 commented 5 years ago

Line 77 In 02_dqn_pong.py, what is the purpose of assigning a variable to itself?

new_state = new_state

Shmuma commented 5 years ago

This line is a leftover from some refactoring and could be removed. State is assigned to object's field at line 81