Closed sukamenev closed 3 months ago
Please see my edits. I hope I understood your ideas correctly.
I added few comments. Generally if there is a modifiable or out tensor that isn't contiguous you work on copy and copy one back like there:
out
https://github.com/artyom-beilis/pytorch_dlprim/blob/34e94ef887de782061a644c1408c9eeb16f2c727/src/pointwise_ops.cpp#L713
I created new pull request with new fixes.
Please see my edits. I hope I understood your ideas correctly.