Skip to content

proper sharing in ShareExternalPointer#10804

Closed
jerryzh168 wants to merge 1 commit intopytorch:masterfrom
jerryzh168:export-D9350686
Closed

proper sharing in ShareExternalPointer#10804
jerryzh168 wants to merge 1 commit intopytorch:masterfrom
jerryzh168:export-D9350686

Conversation

@jerryzh168
Copy link
Contributor

Summary:
Make ShareData and ShareExternalPointer to create new storage when the old one is used by multiple tensors.
When we need to modify the field of storage, we'll create a new storage instead.

Differential Revision: D9350686

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

Summary:
Pull Request resolved: pytorch#10804

Make ShareData and ShareExternalPointer to create new storage when the old one is used by multiple tensors.
When we need to modify the field of storage, we'll create a new storage instead.

Differential Revision: D9350686

fbshipit-source-id: 86445136a22cadedee5e3ebe56073e7d3177dc66
@fmassa fmassa added the caffe2 label Aug 28, 2018
PenghuiCheng pushed a commit to PenghuiCheng/pytorch that referenced this pull request Sep 11, 2018
Summary:
Pull Request resolved: pytorch#10804

Make ShareData and ShareExternalPointer to create new storage when the old one is used by multiple tensors.
When we need to modify the field of storage, we'll create a new storage instead.

Reviewed By: ezyang

Differential Revision: D9350686

fbshipit-source-id: 68d2b6b886b0367b0fc4fabfd55b9a480e7388ca
@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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants