Skip to content

Commit

Permalink
Fix ITEX resnetv2_50 tuning accuracy issue (#283)
Browse files Browse the repository at this point in the history
Signed-off-by: Lv, Liang1 <liang1.lv@intel.com>
  • Loading branch information
lvliang-intel committed Dec 15, 2022
1 parent 88101e5 commit ae1e05d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions neural_compressor/adaptor/tf_utils/graph_converter.py
Expand Up @@ -434,8 +434,8 @@ def _search_y_pattern_for_itex(self):
g = GraphAnalyzer()
g.graph = self._fp32_model.graph_def
g.parse_graph()
y_pattern = [['Conv2D', 'MatMul'], ['BiasAdd'], ['Add', 'AddV2'], ('Relu',)]
y_pattern_variant = [['MaxPool', 'AvgPool'], ['Add', 'AddV2'], ('Relu',)]
y_pattern = [['Conv2D', 'MatMul'], ['BiasAdd'], ['Add', 'AddV2', 'AddN'], ('Relu',)]
y_pattern_variant = [['MaxPool', 'AvgPool'], ['Add', 'AddV2', 'AddN'], ('Relu',)]
target_nodes = g.query_fusion_pattern_nodes(y_pattern)
target_nodes_variant = g.query_fusion_pattern_nodes(y_pattern_variant)

Expand Down

0 comments on commit ae1e05d

Please sign in to comment.