Skip to content

at::StorageImpl: Rename size_ to numel_ and elementSize() to itemsize()#11011

Closed
cpuhrsch wants to merge 1 commit intopytorch:masterfrom
cpuhrsch:renamesize
Closed

at::StorageImpl: Rename size_ to numel_ and elementSize() to itemsize()#11011
cpuhrsch wants to merge 1 commit intopytorch:masterfrom
cpuhrsch:renamesize

Conversation

@cpuhrsch
Copy link
Contributor

No description provided.

@cpuhrsch cpuhrsch changed the title Rename size to numel and elementSize to itemsize at::StorageImpl: Rename size to numel and elementSize to itemsize Aug 29, 2018
@cpuhrsch cpuhrsch changed the title at::StorageImpl: Rename size to numel and elementSize to itemsize at::StorageImpl: Rename size_ to numel_ and elementSize() to itemsize() Aug 29, 2018
Copy link
Contributor

@ezyang ezyang left a comment

Choose a reason for hiding this comment

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

You need a more detailed commit message. It should include justification for why the new names are better. (In this case, numel to disambiguate size from bytes, and itemsize to line up our API with Caffe2's)

This comment was marked as off-topic.

This comment was marked as off-topic.

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.

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

Use numel to disambiguate size from bytes and itemsize to line up with
caffe2::StorageImpl
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.

cpuhrsch 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 Aug 30, 2018
Summary: Pull Request resolved: pytorch/pytorch#11011

Reviewed By: ezyang

Differential Revision: D9561898

Pulled By: cpuhrsch

fbshipit-source-id: 0cf5cdc3e7acd397f7e2d66097856aaad0581147
PenghuiCheng pushed a commit to PenghuiCheng/pytorch that referenced this pull request Sep 11, 2018
Summary: Pull Request resolved: pytorch#11011

Reviewed By: ezyang

Differential Revision: D9561898

Pulled By: cpuhrsch

fbshipit-source-id: 0cf5cdc3e7acd397f7e2d66097856aaad0581147
@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