Hello world!!
I am doing the game of life and I have the following transformation.

game_of_life.png1071×330 23.1 KB

The question is, how can I obtain num_alive_neighbors by using nn.Conv2d instead of nn.functional.conv2d?
Thanks!!