fixed enable_binary_blob option for CWriter
This commit is contained in:
parent
20568812ae
commit
1711e97165
3 changed files with 37 additions and 38 deletions
|
@ -52,7 +52,7 @@ def c_export(args, model):
|
|||
|
||||
message = f"Auto generated from checkpoint {os.path.basename(args.checkpoint)}"
|
||||
|
||||
writer = CWriter(os.path.join(args.output_dir, "lossgen_data"), message=message, model_struct_name='LossGen')
|
||||
writer = CWriter(os.path.join(args.output_dir, "lossgen_data"), message=message, model_struct_name='LossGen', enable_binary_blob=False)
|
||||
writer.header.write(
|
||||
f"""
|
||||
#include "opus_types.h"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue