diff --git a/onnxruntime/python/tools/transformers/models/stable_diffusion/ort_optimizer.py b/onnxruntime/python/tools/transformers/models/stable_diffusion/ort_optimizer.py index a298e515c1454..24570a6ef62da 100644 --- a/onnxruntime/python/tools/transformers/models/stable_diffusion/ort_optimizer.py +++ b/onnxruntime/python/tools/transformers/models/stable_diffusion/ort_optimizer.py @@ -12,7 +12,6 @@ from pathlib import Path import onnx -from optimize_pipeline import has_external_data from packaging import version from onnxruntime.transformers.fusion_options import FusionOptions @@ -60,8 +59,6 @@ def optimize(self, input_fp32_onnx_path, optimized_onnx_path, float16=True, keep fusion_options.enable_packed_kv = False fusion_options.enable_packed_qkv = False - use_external_data_format = has_external_data(input_fp32_onnx_path) - m = optimize_model( input_fp32_onnx_path, model_type=self.model_type,