Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Living cell masking #9

Open
KoKuToru opened this issue Mar 20, 2020 · 0 comments
Open

Living cell masking #9

KoKuToru opened this issue Mar 20, 2020 · 0 comments

Comments

@KoKuToru
Copy link

The description and the 'A single update step of the model.'-illustration doesn't match.

alive = max_pool(state_grid[:, :, 3], (3,3)) > 0.1
state_grid = state_grid * cast(alive, float32)

But the collab notebook (and the illustration):

pre_life_mask = get_living_mask(x)

.. update state ...

post_life_mask = get_living_mask(x)
life_mask = pre_life_mask & post_life_mask
return x * tf.cast(life_mask, tf.float32)

In the colab notebook, cells are only living if they were living and are living after the update ?

What is the reason behind this modified life_mask ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant