srush / Tensor-Puzzles

Solve puzzles. Improve your pytorch.
MIT License
3.19k stars 269 forks source link

12 (compress) and 17 (flatten) #12

Closed jclymo closed 1 year ago

jclymo commented 2 years ago

Thanks so much for these puzzles, I really enjoyed them. I have a working solution for each one but I'm curious if there are other approaches. In particular: I solved puzzle 12 using puzzle 13, and puzzle 17 I used integer division which creates a deprecation warning. I wondered if you have sample solutions I can compare with, or hints?

jaredxfeng commented 1 year ago

I guess not, lol! But I am curious how you solved puzzle 12 with 13!

srush commented 1 year ago

If it is helpful, I put up a recent video https://www.youtube.com/watch?v=SiwTAyyvt5s&feature=youtu.be that shows each of the solutions.

srush commented 1 year ago

oh sorry! yes I also got the integer division warning.