Skip to content

Commit

Permalink
Fix the missing new line issue of dynamic shape.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangyang2057 committed Feb 21, 2024
1 parent 699f198 commit cc9c565
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def set_infer_input(self, sim, compile_opt):
def dump_kmodel_desc(self, file):
input_shapes = data_shape_list_string(self.inputs)
output_shapes = data_shape_list_string(self.outputs)
s = f"{len(self.inputs)} {len(self.outputs)}\n{input_shapes}\n{output_shapes}"
s = f"{len(self.inputs)} {len(self.outputs)}\n{input_shapes}\n{output_shapes}\n"
with open(file, "w+") as f:
f.write(s)

Expand Down

0 comments on commit cc9c565

Please sign in to comment.