@@ -77,7 +77,7 @@ def create(
77
77
devices = devices ,
78
78
)
79
79
except Exception as e :
80
- errors .append (f"{ wf } : { e } \n { traceback . format_stack () } " )
80
+ errors .append (f"{ wf } : { e } " )
81
81
elif (
82
82
wf == "tensorflow_saved_model_bundle"
83
83
and weights .tensorflow_saved_model_bundle is not None
@@ -89,7 +89,7 @@ def create(
89
89
model_description = model_description , devices = devices
90
90
)
91
91
except Exception as e :
92
- errors .append (f"{ wf } : { e } \n { traceback . format_stack () } " )
92
+ errors .append (f"{ wf } : { e } " )
93
93
elif wf == "onnx" and weights .onnx is not None :
94
94
try :
95
95
from ._onnx_model_adapter import ONNXModelAdapter
@@ -98,7 +98,7 @@ def create(
98
98
model_description = model_description , devices = devices
99
99
)
100
100
except Exception as e :
101
- errors .append (f"{ wf } : { e } \n { traceback . format_stack () } " )
101
+ errors .append (f"{ wf } : { e } " )
102
102
elif wf == "torchscript" and weights .torchscript is not None :
103
103
try :
104
104
from ._torchscript_model_adapter import TorchscriptModelAdapter
@@ -107,7 +107,7 @@ def create(
107
107
model_description = model_description , devices = devices
108
108
)
109
109
except Exception as e :
110
- errors .append (f"{ wf } : { e } \n { traceback . format_stack () } " )
110
+ errors .append (f"{ wf } : { e } " )
111
111
elif wf == "keras_hdf5" and weights .keras_hdf5 is not None :
112
112
# keras can either be installed as a separate package or used as part of tensorflow
113
113
# we try to first import the keras model adapter using the separate package and,
@@ -125,7 +125,7 @@ def create(
125
125
model_description = model_description , devices = devices
126
126
)
127
127
except Exception as e :
128
- errors .append (f"{ wf } : { e } \n { traceback . format_stack () } " )
128
+ errors .append (f"{ wf } : { e } " )
129
129
130
130
assert errors
131
131
error_list = "\n - " .join (errors )
0 commit comments