Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion exir/passes/sym_shape_eval_pass.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,11 @@
# elements across all mask indices with a number of elements other than 1.
if len(mask_indices) > 0 and (len(broadcast_sizes) == 0 or broadcast_sizes[0] == 1):
upper_bound_broadcast_size = 1
intialized = False
initialized = False

Check warning on line 114 in exir/passes/sym_shape_eval_pass.py

View workflow job for this annotation

GitHub Actions / lintrunner

FLAKE8 F841

local variable 'initialized' is assigned to but never used See https://www.flake8rules.com/rules/F841.html.
for mask in mask_indices:
mask_numel = eval_expr(mask.numel())
if mask_numel != 1:
if intialized:

Check failure on line 118 in exir/passes/sym_shape_eval_pass.py

View workflow job for this annotation

GitHub Actions / lintrunner

FLAKE8 F821

undefined name 'intialized' See https://www.flake8rules.com/rules/F821.html.
assert isinstance(
mask_numel, int
), "Expect mask_numel to be a concrete int"
Expand All @@ -126,7 +126,7 @@
upper_bound_broadcast_size = mask_numel
else:
upper_bound_broadcast_size = mask_numel
intialized = True

Check warning on line 129 in exir/passes/sym_shape_eval_pass.py

View workflow job for this annotation

GitHub Actions / lintrunner

FLAKE8 F841

local variable 'intialized' is assigned to but never used See https://www.flake8rules.com/rules/F841.html.
if len(broadcast_sizes) == 0:
broadcast_sizes.append(upper_bound_broadcast_size)
else:
Expand Down
Loading