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:
parent
2d473d9f4b
commit
e1482e480b
tensorflow/lite/kernels/internal/optimized
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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(
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user