@@ -843,12 +843,10 @@ class FoldConstantsPass(ir.passes.InPlacePass):
843843 def __init__ (
844844 self ,
845845 * ,
846- external_data_folder : str ,
847846 shape_inference : bool ,
848847 input_size_limit : int ,
849848 output_size_limit : int ,
850849 ) -> None :
851- self ._external_data_folder = external_data_folder
852850 self ._shape_inference = shape_inference
853851 self ._input_size_limit = input_size_limit
854852 self ._output_size_limit = output_size_limit
@@ -1117,7 +1115,6 @@ def __bool__(self) -> bool:
11171115
11181116def fold_constants (
11191117 model : ir .Model ,
1120- external_data_folder : str = "" ,
11211118 * ,
11221119 onnx_shape_inference : bool = False ,
11231120 input_size_limit : int = DEFAULT_CONSTANT_FOLD_INPUT_SIZE_LIMIT ,
@@ -1128,8 +1125,6 @@ def fold_constants(
11281125
11291126 Args:
11301127 model: The ONNX model to optimize.
1131- external_data_folder: Path to the folder containing external data
1132- for the model. Defaults to an empty string.
11331128 onnx_shape_inference: Whether to enable ONNX shape inference during
11341129 constant folding. Defaults to False.
11351130 input_size_limit: The maximum size (in bytes) of input tensors
@@ -1144,7 +1139,6 @@ def fold_constants(
11441139
11451140 """
11461141 folder_pass = FoldConstantsPass (
1147- external_data_folder = external_data_folder ,
11481142 shape_inference = onnx_shape_inference ,
11491143 input_size_limit = input_size_limit ,
11501144 output_size_limit = output_size_limit ,
0 commit comments