Skip to content

[caffe2] Enable copying for caffe2::Tensor#36468

Closed
hlu1 wants to merge 1 commit intopytorch:masterfrom
hlu1:export-D20985924
Closed

[caffe2] Enable copying for caffe2::Tensor#36468
hlu1 wants to merge 1 commit intopytorch:masterfrom
hlu1:export-D20985924

Conversation

@hlu1
Copy link
Copy Markdown
Contributor

@hlu1 hlu1 commented Apr 13, 2020

Summary: Since caffe2::Tensor is now refcounted, enabling copy constructor and the copy assignment operator should be fine.

Test Plan:

buck test mode/dev //caffe2/caffe2:caffe2_test_cpu -- TensorTest

Differential Revision: D20985924

Summary: Since `caffe2::Tensor` is now refcounted, enabling copy constructor and the copy assignment operator should be fine.

Test Plan:
```
buck test mode/dev //caffe2/caffe2:caffe2_test_cpu -- TensorTest
```

Differential Revision: D20985924

fbshipit-source-id: b73939b84f1aa255eac8a8ff1a9fe8ff8cc39887
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D20985924

@dr-ci
Copy link
Copy Markdown

dr-ci Bot commented Apr 13, 2020

💊 Build failures summary and remediations

As of commit 09ce495 (more details on the Dr. CI page):


💚 💚 Looks good so far! There are no failures yet. 💚 💚


This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.

Please report bugs/suggestions on the GitHub issue tracker.

See how this bot performed.

This comment has been revised 1 time.

@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in 4d1ccaf.

laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
Summary:
Pull Request resolved: pytorch#36468

Since `caffe2::Tensor` is now refcounted, enabling copy constructor and the copy assignment operator should be fine.

Test Plan:
```
buck test mode/dev //caffe2/caffe2:caffe2_test_cpu -- TensorTest
```

AI/AF canaries with changes up to D20959214:

https://our.intern.facebook.com/intern/experiment_store/experiment/3298538636995/#commit1-commit2
https://our.intern.facebook.com/intern/experiment_store/experiment/2199027015376/#commit1-commit2

AI/AF canaries on this diff:
https://our.intern.facebook.com/intern/ads/canary/425960191574068914/
https://our.intern.facebook.com/intern/ads/canary/425960179835413033/

Reviewed By: yinghai

Differential Revision: D20985924

fbshipit-source-id: ead5f5ceff23d0adc06d598128de16a5533d767b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants