Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use int8_t instead of char in [load|store]_scalar` #52616

Closed
wants to merge 1 commit into from

Conversation

malfet
Copy link
Contributor

@malfet malfet commented Feb 22, 2021

Since char is not guaranteed to be signed on all platforms (it is unsigned on ARM)
Fixes #52146

@facebook-github-bot
Copy link
Contributor

facebook-github-bot commented Feb 22, 2021

💊 CI failures summary and remediations

As of commit 7a074ca (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 to the (internal) Dr. CI Users group.

@malfet malfet requested review from albanD and a team February 22, 2021 20:20
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.

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

Copy link
Contributor

@walterddr walterddr left a comment

Choose a reason for hiding this comment

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

lgtm

@facebook-github-bot
Copy link
Contributor

@malfet merged this pull request in 67794b1.

@malfet malfet deleted the malfet/fix-toscalar-on-arm branch February 24, 2021 19:52
aocsa pushed a commit to Quansight/pytorch that referenced this pull request Mar 15, 2021
Summary:
Since `char` is not guaranteed to be signed on all platforms (it is unsigned on ARM)
Fixes pytorch#52146

Pull Request resolved: pytorch#52616

Test Plan: Run ` python3 -c "import torch;a=torch.tensor([-1], dtype=torch.int8);print(a.tolist())"` on arm-linux system

Reviewed By: walterddr

Differential Revision: D26586678

Pulled By: malfet

fbshipit-source-id: 91972189b54f86add516ffb96d579acb0bc13311
malfet added a commit to malfet/pytorch that referenced this pull request Mar 15, 2021
Summary:
Since `char` is not guaranteed to be signed on all platforms (it is unsigned on ARM)
Fixes pytorch#52146

Pull Request resolved: pytorch#52616

Test Plan: Run ` python3 -c "import torch;a=torch.tensor([-1], dtype=torch.int8);print(a.tolist())"` on arm-linux system

Reviewed By: walterddr

Differential Revision: D26586678

Pulled By: malfet

fbshipit-source-id: 91972189b54f86add516ffb96d579acb0bc13311
malfet added a commit that referenced this pull request Mar 16, 2021
Summary:
Since `char` is not guaranteed to be signed on all platforms (it is unsigned on ARM)
Fixes #52146

Pull Request resolved: #52616

Test Plan: Run ` python3 -c "import torch;a=torch.tensor([-1], dtype=torch.int8);print(a.tolist())"` on arm-linux system

Reviewed By: walterddr

Differential Revision: D26586678

Pulled By: malfet

fbshipit-source-id: 91972189b54f86add516ffb96d579acb0bc13311
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.

Display of negative int8 tensor values
3 participants