Make alias return a fresh TensorImpl. (#3998)
* Make alias return a fresh TensorImpl.
This is needed to appease https://github.com/pytorch/pytorch/pull/84893
where we need to actually return fresh TensorImpl in the kernel
implementation; the AD machinery won't do this for you.
Signed-off-by: Edward Z. Yang <ezyang@fb.com>
* lintfix
Signed-off-by: Edward Z. Yang <ezyang@fb.com>
Signed-off-by: Edward Z. Yang <ezyang@fb.com>