去除不需要的告警AttributeError: module 'onnxruntime' has no attribute 'preload_dlls'
去除不需要的告警AttributeError: module 'onnxruntime' has no attribute 'preload_dlls'
This commit is contained in:
@@ -23,8 +23,8 @@ from .utils import load_config
|
|||||||
onnxruntime.set_default_logger_severity(3)
|
onnxruntime.set_default_logger_severity(3)
|
||||||
try:
|
try:
|
||||||
onnxruntime.preload_dlls()
|
onnxruntime.preload_dlls()
|
||||||
except:
|
except:pass
|
||||||
traceback.print_exc()
|
#traceback.print_exc()
|
||||||
warnings.filterwarnings("ignore")
|
warnings.filterwarnings("ignore")
|
||||||
|
|
||||||
model_version = "1.1"
|
model_version = "1.1"
|
||||||
|
|||||||
Reference in New Issue
Block a user