Simplify THPPointer implementation for Storage. (#14897)
authorEdward Yang <ezyang@fb.com>
Mon, 10 Dec 2018 23:16:27 +0000 (15:16 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Mon, 10 Dec 2018 23:18:49 +0000 (15:18 -0800)
commit9bbb3efe2fe63e59b13ac1a7b13bc0d493ea6d3a
tree584f3aa0366b98aaed77728a07d749b68643ba52
parent23cc3daabd24fa64cf03ac2db585b4cd45e7ee37
Simplify THPPointer implementation for Storage. (#14897)

Summary:
We've virtualized the destructor for storage, so we
no longer have to forward to a particular backend.

Signed-off-by: Edward Z. Yang <ezyang@fb.com>
Pull Request resolved: https://github.com/pytorch/pytorch/pull/14897

Differential Revision: D13399216

Pulled By: ezyang

fbshipit-source-id: 531d29c3f278477cfa8759f30ab4f304d695b659
torch/csrc/Storage.cpp