Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
nihui committed Apr 8, 2024
1 parent 38190ce commit b9a9c12
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tools/modelwriter.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit b9a9c12

Please sign in to comment.