For writing your own kernels, sure, but a PyTorch built-in is almost always going to be faster than an implementation consisting of a series of simpler PyTorch functions.
By
–
For writing your own kernels, sure, but a PyTorch built-in is almost always going to be faster than an implementation consisting of a series of simpler PyTorch functions.