mirror of
https://github.com/xiph/opus.git
synced 2025-05-29 22:57:41 +00:00
Fix rdovae exporting
This commit is contained in:
parent
bb564fab95
commit
ebccedd918
1 changed files with 2 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue