MCPcopy Create free account
hub / github.com/lazyprogrammer/machine_learning_examples / shift_frames

Function shift_frames

rl2/a3c/worker.py:48–49  ·  view source on GitHub ↗
(state, next_frame)

Source from the content-addressed store, hash-verified

46# Throw out the oldest frame
47# And concatenate the newest frame
48def 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

Callers 1

run_n_stepsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected