Revert "Switch calling convention back to real tensors (#99320)"
This reverts commit 780922c24ec931000cb6a67eeebd2b2288eeb7df.
Reverted https://github.com/pytorch/pytorch/pull/99320 on behalf of https://github.com/DanilBaibak due to Break internal build