What’s the equivalent API of setting thread# in iOS? I manually changed this line to forcefully set numThreads_ to 1 (and recompile the libs) but it has no effect on benchmark performance.

  
      github.com
  
  
    pytorch/pytorch/blob/8c5b0247a571aa672f9070fcc9769f2c4bb19571/caffe2/utils/threadpool/ThreadPool.cc#L112 2

int ThreadPool::getNumThreads() const {  return numThreads_;}// Sets the number of threads// # of threads should not be bigger than the number of big coresvoid ThreadPool::setNumThreads(size_t numThreads) {  if (defaultNumThreads_ == 0) {    defaultNumThreads_ = getDefaultNumThreads();  }  numThreads_ = std::min(numThreads, defaultNumThreads_);}// Sets the minimum work size (range) for which to invoke the// threadpool; work sizes smaller than this will just be run on the// main (calling) threadvoid ThreadPool::setMinWorkSize(size_t size) {  std::lock_guard<std::mutex> guard(executionMutex_);  minWorkSize_ = size;}