News for hackers. Stuff that matters.
Re:Writing Snake in 12 Lines of PyTorch by sason on Thursday August 11, 2022 @03:37PM (#32430710)
It was an enjoyable and enlightening read. Now I’m thinking how I can rewrite my tile-based path-finding RL project to utilize more Tensors and less for loops.

Well done! I’m looking forward to reading how you concurrently ran 100 million mini snake games.

Re:Writing Snake in 12 Lines of PyTorch by eliasffyksen on Thursday August 11, 2022 @04:07PM (#32431074)
Really cool. That's how this project got started. I was doing the exact thing you were doing (tile-based RL path finding). But it was soooo slow, so I started implementing it in tensors, and that's when I realized I could do a whole game of Snake.