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 {
42
42
* is a private API, which will later be replaced by something that allows
43
43
* creating of threadpool with requested size and use such a threadpool with
44
44
* 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.
45
49
*/
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" )]]
47
52
bool _unsafe_reset_threadpool (uint32_t num_threads);
48
53
49
54
/* *
You can’t perform that action at this time.
0 commit comments