srush / Tensor-Puzzles

Solve puzzles. Improve your pytorch.
MIT License
2.96k stars 242 forks source link

Switch order of compress and pad_to, make styling more concise #24

Open samlkrystof opened 6 months ago

samlkrystof commented 6 months ago

pad_to function can make easier implementation of the compress function, it took me a day to find out. I suggest to switch the order of pad_to with compress function. I have also edited some of the cells in the end, because the styling wasn't the same as in the rest of the notebook,