SIGN IN SIGN UP

Merge TensorImplPtr into TensorPtr.

Summary:
Looks like the users can totally share the same Tensor backed by the same TensorImpl.
That way sharing a Tensor happens naturally, and whoever wants to build a truly separate Tensor would just unsafeGetTensorImpl() and go ahead. Cloning also seems straightforward - just copy the data\metadata from an existing TensorPtr into a new one, like we do now.

Reviewed By: swolchok

Differential Revision: D63557912

fbshipit-source-id: 98939ab410ab4c13ccad1c1d64189ed51fce3621
A
Anthony Shoumikhin committed
e31e0b6383da7528ab28072a305b1ebe91b94555
Parent: 8b5cf96
Committed by Facebook GitHub Bot <facebook-github-bot@users.noreply.github.com> on 9/28/2024, 1:10:55 AM