Browse Source

fix compile error

tags/v1.2.0
chuxing 3 years ago
parent
commit
f28de88aaf
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      ge/hybrid/node_executor/task_context.cc

+ 2
- 2
ge/hybrid/node_executor/task_context.cc View File

@@ -392,13 +392,13 @@ void TaskContext::ReleaseInputsAndOutputs() {
for (int i = 0; i < node_item_->num_inputs; ++i) {
auto tensor = inputs_start_ + i;
tensor->Destroy();
GELOGD("[%s] Tensor of input[%d] released", GetNodeName(), index);
GELOGD("[%s] Tensor of input[%d] released", GetNodeName(), i);
}

for (int i = 0; i < node_item_->num_outputs; ++i) {
auto tensor = outputs_start_ + i;
tensor->Destroy();
GELOGD("[%s] Tensor of output[%d] released", GetNodeName(), index);
GELOGD("[%s] Tensor of output[%d] released", GetNodeName(), i);
}
}



Loading…
Cancel
Save