Fix the bug in recording a hexagon profiling event.

PiperOrigin-RevId: 316049143
Change-Id: I7da5a6c0bd00d0b3a35fdbcb1925197adc5d51ef
This commit is contained in:
Chao Mei 2020-06-11 22:39:09 -07:00 committed by TensorFlower Gardener
parent 6b91706311
commit fa58bd5e94

View File

@ -335,8 +335,8 @@ void HexagonDelegateKernel::PrintPerformanceData(Profiler* profiler) {
int node_id = builder_->GetTFLiteNodeID(perf_data[i].node_id);
if (node_id != -1 && op_type_id >= 0) {
profiler->AddEvent((op_type_id < 0 ? "" : op_name.data()),
Profiler::EventType::OPERATOR_INVOKE_EVENT, node_id, 0,
counter);
Profiler::EventType::OPERATOR_INVOKE_EVENT, 0, counter,
node_id);
}
}
}