Link to prototype branch: https://github.com/ailzhang/pytorch/commit/83f647e9f14a89e61378c8e834aec4dfbcb74a00
This prototype only focus on getting rid of aliasing in view ops, after this Func2
you can safely assume that after Func2
kernel you won't see any view ops, but only view_op_copy
ops that returns completely new storage.
You can build this branch and check some examples by running python test/base_to_view.py
and python test/view_to_base.py
. But this branch is only a proof of concept and comes with a lot of hacks, and requires some careful design work described in the section below.