Always a slightly mixed feeling to write pretty good first-principles code to do some tensor rearrangement, only to find that PyTorch has a built in function that does it faster. I had made a point of at least skimming the docs of every torch and tensor function, but if you
PyTorch Built-in Functions Outperform Custom Tensor Rearrangement Code
By
–
Leave a Reply