(state, next_frame)
| 46 | # Throw out the oldest frame |
| 47 | # And concatenate the newest frame |
| 48 | def shift_frames(state, next_frame): |
| 49 | return np.append(state[:,:,1:], np.expand_dims(next_frame, 2), axis=2) |
| 50 | |
| 51 | |
| 52 | # Make a Tensorflow op to copy weights from one scope to another |