Removed duplicate CUBLAS_WORKSPACE_CONFIG var (#16466)

Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
pull/16489/head^2
Francesco Mattioli 2 months ago committed by GitHub
parent 38e95f33a5
commit f3d557e3f2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      ultralytics/utils/__init__.py

@ -111,7 +111,6 @@ torch.set_printoptions(linewidth=320, precision=4, profile="default")
np.set_printoptions(linewidth=320, formatter={"float_kind": "{:11.5g}".format}) # format short g, %precision=5
cv2.setNumThreads(0) # prevent OpenCV from multithreading (incompatible with PyTorch DataLoader)
os.environ["NUMEXPR_MAX_THREADS"] = str(NUM_THREADS) # NumExpr max threads
os.environ["CUBLAS_WORKSPACE_CONFIG"] = ":4096:8" # for deterministic training
os.environ["TF_CPP_MIN_LOG_LEVEL"] = "3" # suppress verbose TF compiler warnings in Colab
os.environ["TORCH_CPP_LOG_LEVEL"] = "ERROR" # suppress "NNPACK.cpp could not initialize NNPACK" warnings
os.environ["KINETO_LOG_LEVEL"] = "5" # suppress verbose PyTorch profiler output when computing FLOPs

Loading…
Cancel
Save