Change existing call sites of the old deprecated gemmlowp WorkersPool::Execute method, which is a footgun because it destroys the Task object that it takes, to the new more explicit name LegacyExecuteAndDestroyTasks for the same behavior.

PiperOrigin-RevId: 246168088
This commit is contained in:
Benoit Jacob 2019-05-01 11:34:37 -07:00 committed by TensorFlower Gardener
parent 2d473d9f4b
commit e1482e480b
5 changed files with 10 additions and 10 deletions

View File

@ -2152,7 +2152,7 @@ inline void DepthwiseConv(
thread_end, thread_dim);
thread_start = thread_end;
}
gemmlowp_context->workers_pool()->Execute(tasks);
gemmlowp_context->workers_pool()->LegacyExecuteAndDestroyTasks(tasks);
}
}

View File

@ -2025,7 +2025,7 @@ inline void DepthwiseConvPerChannel(
output_data, thread_start, thread_end, thread_dim);
thread_start = thread_end;
}
gemmlowp_context->workers_pool()->Execute(tasks);
gemmlowp_context->workers_pool()->LegacyExecuteAndDestroyTasks(tasks);
}
}

View File

@ -355,7 +355,7 @@ inline void FullyConnectedAsGEMV(
row_start = row_end;
}
TFLITE_DCHECK_EQ(row_start, output_rows);
gemmlowp_context->workers_pool()->Execute(tasks);
gemmlowp_context->workers_pool()->LegacyExecuteAndDestroyTasks(tasks);
}
#endif // USE_NEON

View File

@ -396,7 +396,7 @@ inline void DepthwiseConv(
thread_end, thread_dim);
thread_start = thread_end;
}
gemmlowp_context->workers_pool()->Execute(tasks);
gemmlowp_context->workers_pool()->LegacyExecuteAndDestroyTasks(tasks);
}
}
@ -498,7 +498,7 @@ inline void DepthwiseConvPerChannel(
output_data, thread_start, thread_end, thread_dim);
thread_start = thread_end;
}
gemmlowp_context->workers_pool()->Execute(tasks);
gemmlowp_context->workers_pool()->LegacyExecuteAndDestroyTasks(tasks);
}
}
@ -697,7 +697,7 @@ inline void FullyConnectedAsGEMV(
row_start = row_end;
}
TFLITE_DCHECK_EQ(row_start, output_rows);
gemmlowp_context->workers_pool()->Execute(tasks);
gemmlowp_context->workers_pool()->LegacyExecuteAndDestroyTasks(tasks);
}
#endif // USE_NEON
@ -1150,7 +1150,7 @@ inline void ShuffledFullyConnected(
row_start = row_end;
}
TFLITE_DCHECK_EQ(row_start, output_depth);
gemmlowp_context->workers_pool()->Execute(tasks);
gemmlowp_context->workers_pool()->LegacyExecuteAndDestroyTasks(tasks);
}
inline void ShuffledFullyConnected(

View File

@ -1141,7 +1141,7 @@ inline void FullyConnectedAsGEMV(
row_start = row_end;
}
TFLITE_DCHECK_EQ(row_start, output_rows);
gemmlowp_context->workers_pool()->Execute(tasks);
gemmlowp_context->workers_pool()->LegacyExecuteAndDestroyTasks(tasks);
}
#endif // USE_NEON
@ -1768,7 +1768,7 @@ inline void ShuffledFullyConnected(
row_start = row_end;
}
TFLITE_DCHECK_EQ(row_start, output_depth);
gemmlowp_context->workers_pool()->Execute(tasks);
gemmlowp_context->workers_pool()->LegacyExecuteAndDestroyTasks(tasks);
}
inline void MeanImpl(const tflite::MeanParams& op_params,
@ -1983,7 +1983,7 @@ inline void Mean(const tflite::MeanParams& op_params,
output_scale, depth_start, depth_end);
depth_start = depth_end;
}
gemmlowp_context->workers_pool()->Execute(tasks);
gemmlowp_context->workers_pool()->LegacyExecuteAndDestroyTasks(tasks);
}
}