mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-30 20:18:08 +00:00
Fix a resolving issue on the quantization node transforming. (#7952)
This commit is contained in:
parent
b856e7ae3c
commit
09ab895563
2 changed files with 2 additions and 2 deletions
|
|
@ -104,7 +104,7 @@ Status DynamicQuantizeMatMulFusion::ApplyImpl(Graph& graph, bool& modified, int
|
|||
nodes_to_remove.push_back(matmul_integer_to_float_node);
|
||||
}
|
||||
|
||||
modified = !nodes_to_remove.empty();
|
||||
modified = modified || !nodes_to_remove.empty();
|
||||
|
||||
for (const auto& node : nodes_to_remove) {
|
||||
graph_utils::RemoveNodeOutputEdges(graph, node);
|
||||
|
|
|
|||
|
|
@ -153,7 +153,7 @@ Status MatMulIntegerToFloatFusion::ApplyImpl(Graph& graph, bool& modified, int g
|
|||
}
|
||||
}
|
||||
|
||||
modified = !nodes_to_remove.empty();
|
||||
modified = modified || !nodes_to_remove.empty();
|
||||
|
||||
for (const auto& node : nodes_to_remove) {
|
||||
graph_utils::RemoveNodeOutputEdges(graph, node);
|
||||
|
|
|
|||
Loading…
Reference in a new issue