Skip to content

Conversation

dzhulgakov
Copy link
Collaborator

Differential Revision: D13524598

Summary:
Based on offline discussion it should be less surprising to the users of existing code. Thus caffe2::Tensor is now a move-only class (as it used to be), explicit calls to UnsafeSharedInstance() are necessary to get shared_ptr behavior.

This change also identified a few places that misused the copy constructor - those are fixed

Pull Request resolved: pytorch#15416

Reviewed By: Yangqing

Differential Revision: D13524598

fbshipit-source-id: b659a40abc107e62fe3291792c550d817bc7bc07
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