Fix rdovae exporting

This commit is contained in:
Jean-Marc Valin 2025-03-28 19:25:03 -04:00
parent bb564fab95
commit ebccedd918
No known key found for this signature in database
GPG key ID: 5E5DD9A36F9189C8

View file

@ -40,6 +40,7 @@ def print_vector(writer, vector, name, dtype='float', reshape_8x4=False, static=
dtype_suffix = {
'float' : 'float',
'opus_uint8' : 'uint8',
'opus_int8' : 'int8',
'opus_uint16' : 'uint16',
'opus_int16' : 'int16',
@ -54,7 +55,7 @@ f'''
#ifndef USE_WEIGHTS_FILE
'''
)
writer.weight_arrays.append(name)
writer.weight_arrays.append(name)
if reshape_8x4:
vector = vector.reshape((vector.shape[0]//4, 4, vector.shape[1]//8, 8))