mirror of
https://github.com/xiph/opus.git
synced 2025-05-15 07:58:29 +00:00
Update weight-shrinking script
This commit is contained in:
parent
d9d0e7292f
commit
6ac0c87112
1 changed files with 1 additions and 7 deletions
|
@ -1,13 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
for i in fargan_data.c pitchdnn_data.c dred_rdovae_dec_data.c dred_rdovae_enc_data.c
|
for i in fargan_data.c pitchdnn_data.c dred_rdovae_dec_data.c dred_rdovae_enc_data.c plc_data.c lace_data.c nolace_data.c
|
||||||
do
|
do
|
||||||
cat dnn/$i | perl -ne 'if (/DEBUG/ || /#else/) {$skip=1} if (!$skip && !/ifdef DOT_PROD/) {s/^ *//; s/, /,/g; print $_} elsif (/endif/) {$skip=0}' > tmp_data.c
|
cat dnn/$i | perl -ne 'if (/DEBUG/ || /#else/) {$skip=1} if (!$skip && !/ifdef DOT_PROD/) {s/^ *//; s/, /,/g; print $_} elsif (/endif/) {$skip=0}' > tmp_data.c
|
||||||
mv tmp_data.c dnn/$i
|
mv tmp_data.c dnn/$i
|
||||||
done
|
done
|
||||||
|
|
||||||
for i in plc_data.c
|
|
||||||
do
|
|
||||||
cat dnn/$i | perl -ne 'if (/#else.*DOT_PROD/) {$skip=1} if (!$skip && !/ifdef DOT_PROD/) {s/^ *//; s/, /,/g; print $_} elsif (/endif.*DOT_PROD/) {$skip=0}' > tmp_data.c
|
|
||||||
mv tmp_data.c dnn/$i
|
|
||||||
done
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue