Skip to content

Commit ed6b624

Browse files
committed
fix code style
1 parent 05fef0c commit ed6b624

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

optimum/intel/ipex/modeling_base.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,9 @@ def _from_pretrained(
204204
**kwargs,
205205
):
206206
if not getattr(config, "torchscript", False):
207-
raise ValueError("`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+
raise ValueError(
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()`"
209+
)
208210

209211
# Load the model from local directory
210212
if os.path.isdir(model_id):

0 commit comments

Comments
 (0)