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

fix scalar-tensor issue with CrossEntropyLoss label smoothing, symintify #98848

Closed
wants to merge 6 commits into from

Conversation

bdhirsh
Copy link
Contributor

@bdhirsh bdhirsh commented Apr 11, 2023

@pytorch-bot
Copy link

pytorch-bot bot commented Apr 11, 2023

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/98848

Note: Links to docs will display an error until the docs builds have been completed.

❌ 35 Failures

As of commit 4dcfff3:

NEW FAILURES - The following jobs have failed:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@github-actions
Copy link

This PR needs a label

If your changes are user facing and intended to be a part of release notes, please use a label starting with release notes:.

If not, please add the topic: not user facing label.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "topic: not user facing"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

@albanD albanD removed their request for review April 11, 2023 17:57
@@ -369,8 +369,7 @@ static inline Tensor scalarToTensor(
const TensorOptions& options,
const at::Device& self_device) {
if (self_device == at::kCPU) {
return at::detail::scalar_tensor_static(
v, options.dtype_opt()->toScalarType(), self_device);
return at::scalar_tensor(v, options.device(self_device));
Copy link
Contributor

Choose a reason for hiding this comment

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

seems like you've lost the dtype here

@ezyang
Copy link
Contributor

ezyang commented Apr 11, 2023

Everything else looks good, but you need to fix ci

…ing, symintify"

Fixes the fake tensor (and symint) issues with #98571.

In particular, `at::detail::scalar_tensor_static()` seems like a footgun when used in code that needs to be traceable, so we may want to audit its usages more carefully.




cc soumith voznesenskym penguinwu anijain2305 EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx desertfire

[ghstack-poisoned]
bdhirsh added a commit that referenced this pull request Apr 12, 2023
ghstack-source-id: 5b17d54a9e6a509bb5c354205d7f4135b93dc284
Pull Request resolved: #98848
…ing, symintify"

Fixes the fake tensor (and symint) issues with #98571.

In particular, `at::detail::scalar_tensor_static()` seems like a footgun when used in code that needs to be traceable, so we may want to audit its usages more carefully.




cc soumith voznesenskym penguinwu anijain2305 EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx desertfire

[ghstack-poisoned]
bdhirsh added a commit that referenced this pull request Apr 12, 2023
ghstack-source-id: 2f848b3e484e3b6cca1ba1b70808ec0fd31922c3
Pull Request resolved: #98848
…ing, symintify"

Fixes the fake tensor (and symint) issues with #98571.

In particular, `at::detail::scalar_tensor_static()` seems like a footgun when used in code that needs to be traceable, so we may want to audit its usages more carefully.




cc soumith voznesenskym penguinwu anijain2305 EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx desertfire

[ghstack-poisoned]
bdhirsh added a commit that referenced this pull request Apr 12, 2023
ghstack-source-id: 0139f6fc215458862d6be830628052020843612c
Pull Request resolved: #98848
…ing, symintify"

Fixes the fake tensor (and symint) issues with #98571.

In particular, `at::detail::scalar_tensor_static()` seems like a footgun when used in code that needs to be traceable, so we may want to audit its usages more carefully.




cc soumith voznesenskym penguinwu anijain2305 EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx desertfire

[ghstack-poisoned]
bdhirsh added a commit that referenced this pull request Apr 13, 2023
ghstack-source-id: 4dfba505f766e5a43dcbdd93106b0978cd2988d1
Pull Request resolved: #98848
…ing, symintify"

Fixes the fake tensor (and symint) issues with #98571.

In particular, `at::detail::scalar_tensor_static()` seems like a footgun when used in code that needs to be traceable, so we may want to audit its usages more carefully.




cc soumith voznesenskym penguinwu anijain2305 EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx desertfire

[ghstack-poisoned]
bdhirsh added a commit that referenced this pull request Apr 13, 2023
ghstack-source-id: 0980f1bd53adf7b8fae9f06f9666d9fc5d8e03e7
Pull Request resolved: #98848
@github-actions
Copy link

Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as Stale.
Feel free to remove the Stale label if you feel this was a mistake.
If you are unable to remove the Stale label please contact a maintainer in order to do so.
If you want the bot to never mark this PR stale again, add the no-stale label.
Stale pull requests will automatically be closed after 30 days of inactivity.

@github-actions github-actions bot added the Stale label Jun 12, 2023
@github-actions github-actions bot closed this Jul 12, 2023
@facebook-github-bot facebook-github-bot deleted the gh/bdhirsh/405/head branch August 11, 2023 14:17
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.

None yet

2 participants