Make THPVariable_Unpack work on THPVariable too (#55798)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/55798
I'm going to change how cdata is implemented internally, so I want to
make all callsites call through THPVariable_Unpack even if they
actually have a THPVariable in hand
Signed-off-by: Edward Z. Yang <ezyang@fb.com>
Test Plan: Imported from OSS
Reviewed By: bdhirsh
Differential Revision: D27712131
Pulled By: ezyang
fbshipit-source-id: bd2eb1e43c52c6b7a776ff3a45350a23934e643c