Skip to content

Get rid of most usages of Type.tensor.#12002

Closed
gchanan wants to merge 1 commit intopytorch:masterfrom
gchanan:at_empty2
Closed

Get rid of most usages of Type.tensor.#12002
gchanan wants to merge 1 commit intopytorch:masterfrom
gchanan:at_empty2

Conversation

@gchanan
Copy link
Contributor

@gchanan gchanan commented Sep 24, 2018

  1. Most usages are replaced by at::empty.
  2. native_tensor has its namespace function removed
  3. Type.tensor(sizes, strides) becomes at::empty_strided(sizes, strides).

1) Most usages are replaced by at::empty.
2) native_tensor has its namespace function removed
3) Type.tensor(sizes, strides) becomes at::empty_strided(sizes, strides).
Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

gchanan has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

zdevito pushed a commit to zdevito/ATen that referenced this pull request Sep 24, 2018
Summary:
1) Most usages are replaced by at::empty.
2) native_tensor has its namespace function removed
3) Type.tensor(sizes, strides) becomes at::empty_strided(sizes, strides).
Pull Request resolved: pytorch/pytorch#12002

Differential Revision: D10007201

Pulled By: gchanan

fbshipit-source-id: 5e5647c050ed2ecb87a33e0b5ce4928fa3186c34
@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.

3 participants