I also have a question.
From seeing the source code of 1.0, torch.get_num_threads() only informs OPENMP Value (Not consider MKL value).
Is it intentional?

  
      github.com
  
  
    pytorch/pytorch/blob/v1.0.0/aten/src/TH/THGeneral.cpp#L263 10

double THLog2(const double x)
{
return log2(x);
}


double THExpm1(const double x)
{
return expm1(x);
}


void THSetNumThreads(int num_threads)
{
#ifdef _OPENMP
omp_set_num_threads(num_threads);
#endif
#ifdef TH_BLAS_MKL
mkl_set_num_threads(num_threads);


// because PyTorch uses OpenMP outside of MKL invocations
// as well, we want this flag to be false, so that
// threads aren't destroyed and recreated across every