mirror of
https://github.com/xiph/opus.git
synced 2025-05-29 06:39:15 +00:00
Freeze LPCs when quantizing e2e models
This commit is contained in:
parent
8cdc8081d8
commit
054d984bf3
1 changed files with 6 additions and 0 deletions
|
@ -249,6 +249,12 @@ def new_lpcnet_model(rnn_units1=384, rnn_units2=16, nb_used_features=20, batch_s
|
|||
fdense1 = Dense(128, activation='tanh', name='feature_dense1')
|
||||
fdense2 = Dense(128, activation='tanh', name='feature_dense2')
|
||||
|
||||
if flag_e2e and quantize:
|
||||
fconv1.trainable = False
|
||||
fconv2.trainable = False
|
||||
fdense1.trainable = False
|
||||
fdense2.trainable = False
|
||||
|
||||
cfeat = fdense2(fdense1(cfeat))
|
||||
|
||||
if not flag_e2e:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue