Part of #4686 (Batch 2 — in-place variants). The adoption criteria are as follows: - pass the accuracy tests used for the existing implementation; - exhibit performance improvements in terms for speedup; - works at least on NVIDIA and two other backends.
Part of #4686 (Batch 2 — in-place variants).
The adoption criteria are as follows: