C++ API parity: TensorTest.Data fix
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/26920
Test Plan: Imported from OSS
Differential Revision: D17614135
Pulled By: pbelevich
fbshipit-source-id: 96d70a5e7724338d2829bf006696c2d0ac1025a6