From b9a9c1219f08eea9c55ad1d87e74c897ab7b0ab9 Mon Sep 17 00:00:00 2001 From: nihuini Date: Mon, 8 Apr 2024 17:02:44 +0800 Subject: [PATCH] wip --- tools/modelwriter.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tools/modelwriter.h b/tools/modelwriter.h index 64c3549d6882..9fc243693688 100644 --- a/tools/modelwriter.h +++ b/tools/modelwriter.h @@ -897,7 +897,7 @@ int ModelWriter::save(const char* parampath, const char* binpath) } fprintf_param_value(" 19=%d", dynamic_weight) - if (dynamic_weight == 0) + if (op->dynamic_weight == 0) { fwrite_weight_tag_data(op->weight_data, bp); fwrite_weight_data(op->bias_data, bp); @@ -945,7 +945,7 @@ int ModelWriter::save(const char* parampath, const char* binpath) } fprintf_param_value(" 19=%d", dynamic_weight) - if (dynamic_weight == 0) + if (op->dynamic_weight == 0) { fwrite_weight_tag_data(op->weight_data, bp); fwrite_weight_data(op->bias_data, bp); @@ -1056,7 +1056,7 @@ int ModelWriter::save(const char* parampath, const char* binpath) } fprintf_param_value(" 19=%d", dynamic_weight) - if (dynamic_weight == 0) + if (op->dynamic_weight == 0) { fwrite_weight_tag_data(op->weight_data, bp); fwrite_weight_data(op->bias_data, bp); @@ -1119,7 +1119,7 @@ int ModelWriter::save(const char* parampath, const char* binpath) } fprintf_param_value(" 19=%d", dynamic_weight) - if (dynamic_weight == 0) + if (op->dynamic_weight == 0) { fwrite_weight_tag_data(op->weight_data, bp); fwrite_weight_data(op->bias_data, bp); @@ -1286,7 +1286,7 @@ int ModelWriter::save(const char* parampath, const char* binpath) } fprintf_param_value(" 28=%d", dynamic_weight) - if (dynamic_weight == 0) + if (op->dynamic_weight == 0) { fwrite_weight_tag_data(op->weight_data, bp); fwrite_weight_data(op->bias_data, bp); @@ -1325,7 +1325,7 @@ int ModelWriter::save(const char* parampath, const char* binpath) } fprintf_param_value(" 28=%d", dynamic_weight) - if (dynamic_weight == 0) + if (op->dynamic_weight == 0) { fwrite_weight_tag_data(op->weight_data, bp); fwrite_weight_data(op->bias_data, bp); @@ -1451,7 +1451,7 @@ int ModelWriter::save(const char* parampath, const char* binpath) } fprintf_param_value(" 28=%d", dynamic_weight) - if (dynamic_weight == 0) + if (op->dynamic_weight == 0) { fwrite_weight_tag_data(op->weight_data, bp); fwrite_weight_data(op->bias_data, bp); @@ -1491,7 +1491,7 @@ int ModelWriter::save(const char* parampath, const char* binpath) } fprintf_param_value(" 28=%d", dynamic_weight) - if (dynamic_weight == 0) + if (op->dynamic_weight == 0) { fwrite_weight_tag_data(op->weight_data, bp); fwrite_weight_data(op->bias_data, bp);