Skip to content

Commit

Permalink
修改内存复用时的条件判断
Browse files Browse the repository at this point in the history
  • Loading branch information
zjhellofss committed Mar 20, 2024
1 parent 8bfadb9 commit 8506233
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/runtime/runtime_op.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ void RuntimeOperatorUtils<float>::InitOperatorOutput(
}

if (runtime_op->start_time > prev_runtime_op->end_time) {
if (prev_runtime_op->output_operands->size() >= operand_size) {
if (prev_runtime_op->output_operands->size() == operand_size) {
has_found = true;
const auto& prev_output_operand = prev_runtime_op->output_operands;
runtime_op->output_operands = std::make_shared<RuntimeOperand>();
Expand Down

0 comments on commit 8506233

Please sign in to comment.