Tensor-Puzzles icon indicating copy to clipboard operation
Tensor-Puzzles copied to clipboard

Plans for more puzzles?

Open kaiavintr opened this issue 3 years ago • 3 comments

I nominate amin (or amax), nonzero, and, sort.

kaiavintr avatar Dec 23 '22 19:12 kaiavintr

I'm always happy for a PR if you are interested.

I think these ones are quite difficult to do though. Would be curious how you pull it off. Nonzero is a particularly nasty one because it has dynamic output size (but maybe you could do it with padding)

Maybe check out autodiff-puzzles for some sorting fun.

srush avatar Dec 23 '22 21:12 srush

I don't want to give spoilers, but nonzero was easy once I realized the trick (and it's an important trick, so I think it would make a good addition). Sort was definitely challenging, and took many tries to get it under 80 characters though.

I am definitely going to check out your other puzzles! Thank you so much for making these!

kaiavintr avatar Dec 23 '22 22:12 kaiavintr

torch.gather would be a nice addition to this awesome collection of puzzles.

dantp-ai avatar Feb 25 '24 19:02 dantp-ai