Skip to content

Commit 6bf9838

Browse files
authored
Fix pyre in fuse_ops.py (#7024)
Update fuse_ops.py
1 parent 91afa6e commit 6bf9838

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

backends/cadence/aot/fuse_ops.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,9 @@ def fuse_quantized_batch_norm_with_conv(
426426
# Note: there is a quantized.conv2d.new operator in the resulting graph
427427
# that takes a torch.classes.quantized.Conv2dPackedParamsBase as one of the input
428428
# this prevents us to directly call graph_module.recompile().
429+
# pyre-fixme[16]: `GraphModule` has no attribute `_code`.
430+
# pyre-fixme[16]: Item `Tensor` of `Tensor | Module` has no attribute
431+
# `python_code`.
429432
graph_module._code = graph_module._graph.python_code(root_module="self").src
430433

431434
def __init__(self):

0 commit comments

Comments
 (0)