Skip to content

Conversation

mark14wu
Copy link
Collaborator

The SymbolicExprDataWrapper was missing a dtype property, causing AttributeError when triton's create_ashr tried to access lhs.data.dtype. This fix adds a dtype property that returns the dtype from the underlying symbolic expression, with a fallback to np.int64 for integer operations.

🤖 Generated with Claude Code

The SymbolicExprDataWrapper was missing a dtype property, causing
AttributeError when triton's create_ashr tried to access lhs.data.dtype.
This fix adds a dtype property that returns the dtype from the underlying
symbolic expression, with a fallback to np.int64 for integer operations.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@mark14wu mark14wu requested a review from Jokeren August 18, 2025 02:33
):
return self.symbolic_expr.dtype_tt
# Default to int64 if no dtype is available (common for integer operations)
return np.int64
Copy link
Member

Choose a reason for hiding this comment

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

Please attach the test case, it doesn't seem correct to always fallback to np.int64.

Triton's logic is to assign scalars as int32 or int64 based on their values

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants