Make lazy tensor ptr class customizable (#76476)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/76476
Test Plan: Imported from OSS
Reviewed By: Krovatkin, bdhirsh
Differential Revision: D35980433
Pulled By: wconstab
fbshipit-source-id: 1d4d00a494bf8aea86278b007f7f353cd7a822f8
(cherry picked from commit a78655bef23b5fa8487ced13443ca0bfdec65e5c)