MCPcopy Index your code
hub / github.com/lazyprogrammer/machine_learning_examples / repeat_frame

Function repeat_frame

rl2/a3c/worker.py:41–42  ·  view source on GitHub ↗
(frame)

Source from the content-addressed store, hash-verified

39
40# Create initial state by repeating the same frame 4 times
41def repeat_frame(frame):
42 return np.stack([frame] * 4, axis=2)
43
44
45# Create next state by shifting each frame by 1

Callers 2

runMethod · 0.85
run_n_stepsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected