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

Reland: mul: convert inputs to result type. #7602

Merged
merged 3 commits into from
Jul 2, 2024

Conversation

ysiraichi
Copy link
Collaborator

Fix: #7266

This PR tries to re-land #7130, which was reverted due to regressions on XLA:TPU. On top of that, it also fixes a subtle bug that went under the radar. Although we couldn't find a minimal reproducer, internal CI for TPU was reportedly broken due to this PR.

Therefore, the idea is to have this PR merged, and check the internal CI for TPU results.

cc @miladm @vanbasten23 @JackCaoG

@@ -158,7 +158,7 @@ class OpConfig {
inputs.begin(), inputs.end(), [](const at::Tensor& tensor) {
return bridge::TryGetXlaTensor(tensor);
});
XLA_CHECK(it != inputs_.end());
XLA_CHECK(it != inputs.end());
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Previously, incorrectly checking against inputs_ instead of inputs.

Copy link
Collaborator

Choose a reason for hiding this comment

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

man! I should catch this during reviewing haha

Copy link
Collaborator Author

@ysiraichi ysiraichi Jul 1, 2024

Choose a reason for hiding this comment

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

Must admit that it was NOT (wow, what a typo) the best naming choice, though.

Copy link
Collaborator

Choose a reason for hiding this comment

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

nice catch 🤣 , I will check the TPU CI after this pr is merged.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Again, sorry for the typo there. That was really bad.

@ysiraichi ysiraichi merged commit 77f66b5 into master Jul 2, 2024
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants