Skip to content

Commit 5ec362f

Browse files
authored
fix matmul_v2 (PaddlePaddle#896)
1 parent b3d82cb commit 5ec362f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

paddleslim/nas/ofa/get_sub_model.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,18 @@
2121

2222
DYNAMIC_WEIGHT_OP = [
2323
'conv2d', 'mul', 'matmul', 'embedding', 'conv2d_transpose',
24-
'depthwise_conv2d'
24+
'depthwise_conv2d', 'matmul_v2'
2525
]
2626

2727
CONV_TYPES = [
2828
'conv2d', 'conv3d', 'conv1d', 'superconv2d', 'supergroupconv2d',
29-
'superdepthwiseconv2d'
29+
'superdepthwiseconv2d', 'matmul_v2'
3030
]
3131

3232
ALL_WEIGHT_OP = [
3333
'conv2d', 'mul', 'matmul', 'elementwise_add', 'embedding',
3434
'conv2d_transpose', 'depthwise_conv2d', 'batch_norm', 'layer_norm',
35-
'instance_norm', 'sync_batch_norm'
35+
'instance_norm', 'sync_batch_norm', 'matmul_v2'
3636
]
3737

3838

0 commit comments

Comments
 (0)