Skip to content

Commit b97bed0

Browse files
committed
Moving rewrite_gemm to the end of the rewriters list
1 parent c2af629 commit b97bed0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tf2onnx/tfonnx.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -451,13 +451,13 @@ def compat_handler(ctx, node, **kwargs):
451451
# pre-processing graph rewrites
452452
# bi-directional re-writer should be placed after single directional re-writer
453453
rewriters = [rewrite_constant_fold, rewrite_quantize_and_dequantize, rewrite_transpose, rewrite_flatten,
454-
rewrite_gemm, rewrite_random_uniform, rewrite_random_uniform_fold_const,
454+
rewrite_random_uniform, rewrite_random_uniform_fold_const,
455455
rewrite_random_normal, rewrite_dropout, rewrite_eye,
456456
rewrite_leakyrelu, rewrite_thresholded_relu, rewrite_conv2d_with_pad,
457457
rewrite_single_direction_lstm, rewrite_bi_direction_lstm,
458458
rewrite_single_direction_gru, rewrite_bi_direction_gru,
459459
rewrite_custom_rnn_cell, rewrite_generic_loop, rewrite_cond,
460-
rewrite_biasadd_with_conv2d,
460+
rewrite_biasadd_with_conv2d, rewrite_gemm
461461
]
462462

463463
if custom_rewriter is not None:

0 commit comments

Comments
 (0)