Skip to content

Commit febb9a9

Browse files
isurufetaf
authored andcommitted
[inductor] require shape in TritonCSEVariable (#162275)
Pull Request resolved: #162275 Approved by: https://github.com/mlazos ghstack dependencies: #164158
1 parent ce3d98b commit febb9a9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

torch/_inductor/codegen/triton.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -969,8 +969,7 @@ def __init__(
969969
# We'll use this to track which masks the variable needs when used for indirect indexing
970970
self.mask_vars: OrderedSet[str] = OrderedSet()
971971
assert dtype is not None, "TritonCSEVariable must have dtype"
972-
# TODO: uncomment this and fix the few failures left
973-
# assert shape is not None, "TritonCSEVariable must have shape"
972+
assert shape is not None, "TritonCSEVariable must have shape"
974973

975974
def update_on_args(self, name, args, kwargs):
976975
for arg in args:

0 commit comments

Comments
 (0)