Skip to content

Fix visitCall in deviceIR. Always visit argument nodes #178

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

Closed
wants to merge 1 commit into from

Conversation

joydddd
Copy link
Contributor

@joydddd joydddd commented Jun 13, 2025

joydddd added a commit that referenced this pull request Jun 13, 2025
ghstack-source-id: fefa4f8
Pull Request resolved: #178
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jun 13, 2025
@joydddd joydddd requested review from jansel, drisspg and yf225 June 14, 2025 00:47
@jansel
Copy link
Contributor

jansel commented Jun 14, 2025

@joydddd I don't believe ghstack works in this repo. @oulgen can confirm.

I have been using https://github.com/modular/stack-pr instead. You may need to recreate the PR using that.

@oulgen
Copy link
Contributor

oulgen commented Jun 14, 2025

@joydddd I don't believe ghstack works in this repo. @oulgen can confirm.

I have been using https://github.com/modular/stack-pr instead. You may need to recreate the PR using that.

there's a way to make ghstack work, but its pretty tedious, so yea please use stack-pr, it is very similar

@joydddd joydddd changed the base branch from gh/joydddd/1/base to main June 15, 2025 03:05
Comment on lines 423 to 425
def _to_proxy(self, node: ast.AST) -> object:
assert isinstance(node, ExtendedAST)
type_info = node._type_info
if not type_info.contains_tensor():
return type_info.proxy()
return self.visit(node)
Copy link
Contributor

Choose a reason for hiding this comment

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

This function has become the same as self.visit. Let's delete it and update the callers to call self.visit directly.

joydddd added a commit that referenced this pull request Jun 16, 2025
ghstack-source-id: fefa4f8
Pull Request resolved: #178
joydddd added a commit that referenced this pull request Jun 16, 2025
ghstack-source-id: fefa4f8
Pull Request resolved: #178

stack-info: PR: #180, branch: joydddd/stack/2
@joydddd joydddd closed this Jun 16, 2025
joydddd added a commit that referenced this pull request Jun 16, 2025
ghstack-source-id: fefa4f8
Pull Request resolved: #178

stack-info: PR: #180, branch: joydddd/stack/2
@joydddd joydddd deleted the gh/joydddd/1/head branch June 16, 2025 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Meta Open Source bot.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants