Skip to content

Instantly share code, notes, and snippets.

@g-leech
Created April 14, 2018 15:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save g-leech/4309f07525ba867202804ac82fc46680 to your computer and use it in GitHub Desktop.
Save g-leech/4309f07525ba867202804ac82fc46680 to your computer and use it in GitHub Desktop.
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