Skip to content

Improve Tensor() constructor#11258

Closed
smessmer wants to merge 6 commits intoexport-D9644700from
export-D9652088
Closed

Improve Tensor() constructor#11258
smessmer wants to merge 6 commits intoexport-D9644700from
export-D9652088

Conversation

@smessmer
Copy link
Contributor

@smessmer smessmer commented Sep 5, 2018

Stack:
    :white_circle:  #11167 Narrowing Blob  💛
    :white_circle:  #11238 Some improvements to IValue  💛
    :black_circle:  #11258 Improve Tensor() constructor  💛
    :white_circle:  #11260 Fix intrusive_ptr move/copy for different NullType's  💛
    :white_circle:  #11294 Remove manual refcounting from Tensor class  💛
    :white_circle:  #11352 Remove intrusive_ptr::reclaim() in Storage  💛
    :white_circle:  #11353 Simplify union payload copying  💛
    :white_circle:  #11355 Simplify IValue::toTensor()  💛
    :white_circle:  #11402 Simplify Blob move constructor/assignment  💛
    :white_circle:  #11414 IValue can store Blob  💛
    :white_circle:  #11481 Blob doesn't allow access to destroyCall anymore  💛

The two intrusive_ptr constructors in Tensor can be combined into one implementation that does both, moving and copying.

Differential Revision: D9652088

Differential Revision: D9652088
Differential Version: 56917655
Differential Revision: D9652088
Differential Version: 56918713
Copy link
Contributor

@ezyang ezyang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I always have to check my Meyers to remember when I'm allowed to combine them this way...

Differential Revision: D9652088
Differential Version: 56982465
Differential Revision: D9652088
Differential Version: 57101545
Differential Revision: D9652088
Differential Version: 57135218
Differential Revision: D9652088
Differential Version: 57214005
zdevito pushed a commit to zdevito/ATen that referenced this pull request Sep 10, 2018
Summary:
Pull Request resolved: pytorch/pytorch#11258

The two intrusive_ptr constructors in Tensor can be combined into one implementation that does both, moving and copying.

Reviewed By: ezyang

Differential Revision: D9652088

fbshipit-source-id: 5efca02654ba305c99c20bbeb83551469d17a51d
PenghuiCheng pushed a commit to PenghuiCheng/pytorch that referenced this pull request Sep 11, 2018
Summary:
Pull Request resolved: pytorch#11258

The two intrusive_ptr constructors in Tensor can be combined into one implementation that does both, moving and copying.

Reviewed By: ezyang

Differential Revision: D9652088

fbshipit-source-id: 5efca02654ba305c99c20bbeb83551469d17a51d
@ezyang ezyang added the merged label Jun 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants