Fix OpenBLAS warning (#583)

Fixes the error msg: "OpenBLAS warning: precompiled NUM_THREADS exceeded, adding auxiliary array for thread metadata"
This commit is contained in:
Justin John 2023-06-20 00:17:18 -07:00 committed by GitHub
parent 413c0d285d
commit cdbb76cb6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -10,6 +10,7 @@ import warnings
import numpy as np
import torch
os.environ['OPENBLAS_NUM_THREADS'] = '1'
os.environ["no_proxy"] = "localhost, 127.0.0.1, ::1"
import logging
import threading