Skip to content

Instantly share code, notes, and snippets.

@g-leech
Created Apr 14, 2018
Embed
What would you like to do?
previous = np.array([
[152, 152, 152, 152, 152, 152],
[152, 219, 134, 152, 152, 152],
[152, 219, 78, 219, 219, 152],
[152, 152, 219, 219, 219, 152],
[152, 152, 152, 219, 129, 152],
[152, 152, 152, 152, 152, 152]
])
current = np.array([
[152, 152, 152, 152, 152, 152],
[152, 134, 219, 152, 152, 152],
[152, 219, 78, 219, 219, 152],
[152, 152, 219, 219, 219, 152],
[152, 152, 152, 219, 129, 152],
[152, 152, 152, 152, 152, 152]
])
state = np.stack([previous, current], axis=2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment