Skip to content

Rename Tensor.Size() to Tensor.SizeInBytes() - #1502

Merged
Yufeng Li (yufenglee) merged 3 commits into
masterfrom
roli/size_to_sizeInBytes
Jul 26, 2019
Merged

Rename Tensor.Size() to Tensor.SizeInBytes()#1502
Yufeng Li (yufenglee) merged 3 commits into
masterfrom
roli/size_to_sizeInBytes

Conversation

@yufenglee

Copy link
Copy Markdown
Member

Description: Describe your changes.
Tensor.Size() returns its memory size in bytes instead of element size. The name is confusing. Rename it to SizeInBytes()
Motivation and Context

  • Why is this change required? What problem does it solve?
  • If it fixes an open issue, please link to the issue here.

@snnn

Copy link
Copy Markdown
Contributor

Hi Pranav Sharma (@pranavsharma), please review this PR. The renaming is a breaking change to our 1st partners. If you agree with this change, please help us coordinate with our partners and acknowledge them of this. Thanks.

@pranavsharma

Copy link
Copy Markdown
Contributor

LGTM. Will approve once the builds pass.

@linkerzhang Ke Zhang (linkerzhang) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you very much!

@yufenglee
Yufeng Li (yufenglee) merged commit d6a3048 into master Jul 26, 2019
@snnn
snnn (snnn) deleted the roli/size_to_sizeInBytes branch July 26, 2019 21:53
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.

6 participants