Skip to content

Commit da0c80a

Browse files
authored
Add typing annotations to guard and source
Differential Revision: D79199389 Pull Request resolved: #12986
1 parent f726c4e commit da0c80a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exir/passes/sym_shape_eval_pass.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ def call(self, graph_module: GraphModule):
225225
for i, v in enumerate(spec.shape):
226226
if concrete_shape[i] is None:
227227
# get updated shape from var_to_range
228-
_value_range = shape_env.var_to_range[
228+
_value_range = shape_env.var_to_range[ # pyre-fixme[16] `Optional` has no attribute `var_to_range`.
229229
v._sympy_() # pyre-fixme[16] Undefined attribute: `int` has no attribute `_sympy_`.
230230
]
231231
# cannot handle unbounded, unbacked symints; add a range to bound it.

0 commit comments

Comments
 (0)