Skip to content
Snippets Groups Projects
Unverified Commit 6ac0c871 authored by Jean-Marc Valin's avatar Jean-Marc Valin
Browse files

Update weight-shrinking script

parent d9d0e729
No related merge requests found
Pipeline #5146 passed
#!/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
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
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment