[C++ API] Make torch::Tensor -> at::Tensor#10516
[C++ API] Make torch::Tensor -> at::Tensor#10516goldsborough wants to merge 2 commits intopytorch:masterfrom
Conversation
facebook-github-bot
left a comment
There was a problem hiding this comment.
goldsborough has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
|
CC @gchanan What's going on with the |
|
@ezyang so it's good that this PR gets rid of |
|
@ezyang afaik this should only affect the C++ API users. The library writers are free to pass around Variables as they wish. The main issue for the users is that Variable.data() and Tensor.data() do different things. |
|
We should rename one of those |
torch::Tensor = at::Tensor compiles Made tests with torch::Tensor = at::Tensor pass Removed TensorListView
fae9c2b to
0509855
Compare
facebook-github-bot
left a comment
There was a problem hiding this comment.
goldsborough is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
This PR removes the
using Tensor = autograd::Variable;alias fromtorch/tensor.h, which meanstorch::Tensoris nowat::Tensor. This PR fixes up some last uses of.data()and tidies up the resulting code. For example, I was able to removeTensorListViewsuch that code likeis now
CC @jgehring
@ebetica