Use intrusive_ptr for Blob in IValue (#16052)
authorSebastian Messmer <messmer@fb.com>
Thu, 17 Jan 2019 23:47:16 +0000 (15:47 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 17 Jan 2019 23:56:54 +0000 (15:56 -0800)
commit637b35b372a2d8fccd7ab706da522a035b735ac6
tree8e3fdaf26877c329e2f03f67a84ba353db4a559f
parent3e85a2bcbfb1c0275ed61122e6a70a50ba2deece
Use intrusive_ptr for Blob in IValue (#16052)

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/16052

We need IValue to take/return Blob as an intrusive_ptr because we want to pass it around and Blob has disabled copying.
This is needed in a diff on top.

Reviewed By: ezyang

Differential Revision: D13684761

fbshipit-source-id: 7cb3d7e9fec39a2bc9f063d4d30404e6d7016eb2
aten/src/ATen/core/ivalue.cpp
aten/src/ATen/core/ivalue.h