artyom-beilis / pytorch_dlprim

DLPrimitives/OpenCL out of tree backend for pytorch
http://blog.dlprimitives.org/
MIT License
276 stars 17 forks source link

I fixed all of bugs with contiguous() and added speed improvements: convert to contiguous only if needed #66

Closed sukamenev closed 6 months ago

sukamenev commented 6 months ago

It turns out the check is built into contiguous. I'll make the code more compact