Skip to content

Commit

Permalink
fix output when test cli
Browse files Browse the repository at this point in the history
  • Loading branch information
zhen8838 committed Nov 6, 2023
1 parent 17dbcc4 commit 4411d9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Native/src/test_cli.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ result<void> run_core(const std::string &kmodel_path,
.count() /
1e6);

if (i == (loop_count - 1)) {
if (i == (loop_count - 1) && (entry->parameters_size() < bins.size())) {
if (ret.is_a<tensor>()) {
auto output_bin = bins.back();
std::ofstream output_stream(output_bin, std::ios::binary);
Expand Down

0 comments on commit 4411d9e

Please sign in to comment.