Skip to content

Commit

Permalink
add matmul_v2_transpose_reshape_fuse_pass to quant2_int8_mkldnn_pass.…
Browse files Browse the repository at this point in the history
  • Loading branch information
sfraczek authored and Zjq9409 committed Dec 10, 2021
1 parent fea46a6 commit bfec2e8
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,7 @@ def _optimize_fp32_graph(self, graph):
if self._is_fc_quantized(graph):
graph = self._apply_pass(graph, 'fc_mkldnn_pass')
graph = self._apply_pass(graph, 'matmul_transpose_reshape_fuse_pass')
graph = self._apply_pass(graph, 'matmul_v2_transpose_reshape_fuse_pass')
# the following pass should be the last one since it will work on all fused ops.
graph = self._apply_pass(graph, 'runtime_context_cache_pass')
return graph
Expand Down

0 comments on commit bfec2e8

Please sign in to comment.