Skip to content

Conversation

joydddd
Copy link
Contributor

@joydddd joydddd commented Jun 16, 2025

Stacked PRs:


Add lowering for Constant assignment

joydddd added a commit that referenced this pull request Jun 16, 2025
stack-info: PR: #187, branch: joydddd/stack/3
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jun 16, 2025
@joydddd joydddd requested review from jansel, yf225 and drisspg June 16, 2025 22:17
@@ -279,6 +279,21 @@ def test_block_size_access(x: torch.Tensor) -> torch.Tensor:
expected = torch.full_like(x, 1, dtype=torch.int32)
torch.testing.assert_close(result, expected)

def test_assign_int(self):
@helion.kernel(config={"block_size": 16})
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
@helion.kernel(config={"block_size": 16})
@helion.kernel

return x

x = torch.zeros([200], device=DEVICE)
expected = torch.full_like(x, 1)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
expected = torch.full_like(x, 1)
expected = torch.ones_like(x)

stack-info: PR: #187, branch: joydddd/stack/3
@joydddd joydddd changed the base branch from joydddd/stack/2 to main June 16, 2025 22:53
@joydddd joydddd mentioned this pull request Jun 16, 2025
@joydddd joydddd merged commit 2736ff4 into main Jun 16, 2025
6 checks passed
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.

5 participants