Tensor class created from java does not call native methods
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/31520
Test Plan: Imported from OSS
Reviewed By: iseeyuan
Differential Revision: D19199477
Pulled By: IvanKobzarev
fbshipit-source-id: ba51454586a9385dba4ab73936f907346e0105d1