File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -42,8 +42,13 @@ class ThreadPool final {
4242 * is a private API, which will later be replaced by something that allows
4343 * creating of threadpool with requested size and use such a threadpool with
4444 * backend delegates, custom ops or optimized lib.
45+ * For Meta internal use, there is
46+ * executorch::extension::threadpool::UseNThreadsThreadPoolGuard API that
47+ * provides a safer way to select a subset of threads, from threadpool, to run
48+ * the model on.
4549 */
46- [[deprecated(" This API is experimental and may change without notice." )]]
50+ [[deprecated(
51+ " This API is experimental and may change without notice. Consider using UseNThreadsThreadPoolGuard" )]]
4752 bool _unsafe_reset_threadpool (uint32_t num_threads);
4853
4954 /* *
You can’t perform that action at this time.
0 commit comments