瀏覽代碼

Default `OMP_NUM_THREADS=8` (#6770)

modifyDataloader
Glenn Jocher GitHub 2 年之前
父節點
當前提交
c161557563
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4AEE18F83AFDEB23
共有 1 個檔案被更改,包括 1 行新增0 行删除
  1. +1
    -0
      utils/general.py

+ 1
- 0
utils/general.py 查看文件

@@ -45,6 +45,7 @@ np.set_printoptions(linewidth=320, formatter={'float_kind': '{:11.5g}'.format})
pd.options.display.max_columns = 10
cv2.setNumThreads(0) # prevent OpenCV from multithreading (incompatible with PyTorch DataLoader)
os.environ['NUMEXPR_MAX_THREADS'] = str(NUM_THREADS) # NumExpr max threads
os.environ['OMP_NUM_THREADS'] = str(NUM_THREADS) # OpenMP max threads (PyTorch and SciPy)


def is_kaggle():

Loading…
取消
儲存