Skip to content

Commit

Permalink
[Inductor] Support Triton AttrsDescriptor cls field (pytorch#139193)
Browse files Browse the repository at this point in the history
Fixes pytorch#139179

Adding corresponding changes to triton-lang/triton#4888

Pull Request resolved: pytorch#139193
Approved by: https://github.com/bertmaher
  • Loading branch information
alexbaden authored and pytorchmergebot committed Oct 30, 2024
1 parent 180d283 commit 5c6d354
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion torch/_inductor/runtime/hints.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ def AttrsDescriptorWrapper(
}

# Instantiate AttrsDescriptor with the prepared arguments
res = AttrsDescriptor.from_dict(kwargs)
res = AttrsDescriptor.from_dict(
{"arg_properties": kwargs, "cls": AttrsDescriptor.__name__}
)
assert res.property_values["tt.divisibility"] == 16
assert res.property_values["tt.equal_to"] == 1
return res
Expand Down

0 comments on commit 5c6d354

Please sign in to comment.