Explorar el Código

Default `OMP_NUM_THREADS=8` (#6770)

modifyDataloader
Glenn Jocher GitHub hace 2 años
padre
commit
c161557563
No se encontró ninguna clave conocida en la base de datos para esta firma ID de clave GPG: 4AEE18F83AFDEB23
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. +1
    -0
      utils/general.py

+ 1
- 0
utils/general.py Ver fichero

@@ -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():

Cargando…
Cancelar
Guardar