Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions torchao/quantization/pt2e/qat_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -887,8 +887,8 @@ def _fold_conv_bn_qat(m: GraphModule) -> GraphModule:
node.target == torch.ops.aten.add_.Tensor
and node.args[0].op == "get_attr"
and node.args[1] == 1
and torch.nn.modules.batchnorm.BatchNorm2d
in [val[1] for val in node.meta["source_fn_stack"]]
and "torch.nn.modules.batchnorm.BatchNorm2d"
in [val[1] for _, val in node.meta["nn_module_stack"].items()]
):
m.graph.erase_node(node)

Expand Down
Loading