You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: optimum/intel/ipex/modeling_base.py
+3-1
Original file line number
Diff line number
Diff line change
@@ -204,7 +204,9 @@ def _from_pretrained(
204
204
**kwargs,
205
205
):
206
206
ifnotgetattr(config, "torchscript", False):
207
-
raiseValueError("`config.torchscript` should be set to `True`, if your model is not a TorchScript model and needs to be traced please set `export=True` when loading it with `.from_pretrained()`")
207
+
raiseValueError(
208
+
"`config.torchscript` should be set to `True`, if your model is not a TorchScript model and needs to be traced please set `export=True` when loading it with `.from_pretrained()`"
0 commit comments