Skip to content

Commit

Permalink
fix nit
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyu-work committed Mar 21, 2024
1 parent 7ba531b commit 1f8b9a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion onnxruntime/python/tools/transformers/optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def optimize_by_onnxruntime(
else:
providers.append("CUDAExecutionProvider")

# For ModelProto, we need to extract external data and add them to the session options.
# For large model, extract external data from model and add to session options
if isinstance(onnx_model, ModelProto):
if save_as_external_data:
raise ValueError("Model has external data, model path is required to load the inference session.")
Expand Down

0 comments on commit 1f8b9a8

Please sign in to comment.