From 51dd43c1df044bc66ccdac8ac6387cd7dab00789 Mon Sep 17 00:00:00 2001 From: Jan Iwaszkiewicz Date: Wed, 7 Aug 2024 16:34:29 +0200 Subject: [PATCH] Fix order of cmds --- compiler/one-cmds/how-to-use-one-commands.txt | 2 +- compiler/one-cmds/onelib/constant.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/one-cmds/how-to-use-one-commands.txt b/compiler/one-cmds/how-to-use-one-commands.txt index af731943bf3..d6656545ff8 100644 --- a/compiler/one-cmds/how-to-use-one-commands.txt +++ b/compiler/one-cmds/how-to-use-one-commands.txt @@ -171,10 +171,10 @@ Current transformation options are - fuse_batchnorm_with_conv : This fuses BatchNorm operator to convolution operator - fuse_batchnorm_with_dwconv : This fuses BatchNorm operator to depthwise convolution operator - fuse_batchnorm_with_tconv : This fuses BatchNorm operator to transpose convolution operator -- fuse_mul_with_fullyconnected: This fuses Mul operator with the preceding FullyConnected operator if possible - fuse_mul_to_fullyconnected_weights : This fuses Mul operator to following FullyConnected operator weights - fuse_mul_with_conv: This fuses Mul with a preceding Convolution op if possible. - fuse_mul_with_div: This fuses Mul and Div op as Div. +- fuse_mul_with_fullyconnected: This fuses Mul operator with the preceding FullyConnected operator if possible. - fuse_slice_with_tconv: This fuses Slice with a preceding TConv if possible. - fuse_bcq: This enables Binary-Coded-bases Quantized DNNs - read https://arxiv.org/abs/2005.09904 for detailed information diff --git a/compiler/one-cmds/onelib/constant.py b/compiler/one-cmds/onelib/constant.py index 192b258973f..a8dabf139d0 100644 --- a/compiler/one-cmds/onelib/constant.py +++ b/compiler/one-cmds/onelib/constant.py @@ -44,7 +44,6 @@ class CONSTANT: 'fuse_batchnorm_with_dwconv', 'fuse_batchnorm_with_tconv', 'fuse_activation_function', - 'fuse_mul_with_fullyconnected', 'fuse_mul_to_fullyconnected_weights', 'fuse_instnorm', 'fuse_prelu', @@ -53,6 +52,7 @@ class CONSTANT: 'fuse_mean_with_mean', 'fuse_mul_with_conv', 'fuse_mul_with_div', + 'fuse_mul_with_fullyconnected', 'fuse_transpose_with_mean', 'fuse_slice_with_tconv', 'fuse_horizontal_fc_layers', @@ -123,7 +123,6 @@ class CONSTANT: ('fuse_batchnorm_with_conv', 'fuse BatchNorm op to Convolution op'), ('fuse_batchnorm_with_dwconv', 'fuse BatchNorm op to Depthwise Convolution op'), ('fuse_batchnorm_with_tconv', 'fuse BatchNorm op to Transposed Convolution op'), - ('fuse_mul_with_fullyconnected', 'fuse Mul op to FullyConnected op'), ('fuse_mul_to_fullyconnected_weights', 'fuse Mul op to following FullyConnected op weights'), ('fuse_slice_with_tconv', 'fuse Slice op to Transposed Convolution op'), @@ -133,6 +132,7 @@ class CONSTANT: ('fuse_mean_with_mean', 'fuse two consecutive Mean ops'), ('fuse_mul_with_conv', 'fuse Mul op to Convolution op'), ('fuse_mul_with_div', 'fuse Mul with Div as Div'), + ('fuse_mul_with_fullyconnected', 'fuse Mul op to FullyConnected op'), ('fuse_transpose_with_mean', 'fuse Mean with a preceding Transpose under certain conditions'), ('fuse_horizontal_fc_layers',