We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15442af commit 04c1a07Copy full SHA for 04c1a07
1 file changed
backends/apple/coreml/compiler/coreml_preprocess.py
@@ -365,7 +365,7 @@ def preprocess_model(
365
366
match model_type:
367
case CoreMLBackend.MODEL_TYPE.COMPILED_MODEL:
368
- shutil.rmtree(str(model_path.resolve()), ignore_errors=True)
+ shutil.rmtree(str(model_path.resolve()))
369
model_path = model_dir_path / MODEL_PATHS.COMPILED_MODEL.value
370
compiled_model_path = mlmodel.get_compiled_model_path()
371
shutil.move(
@@ -396,7 +396,7 @@ def preprocess_model(
396
for key, value in model_debug_info.debugSymbolToHandles.items()
397
}
398
399
- shutil.rmtree(str(dir_path.resolve()), ignore_errors=True)
+ shutil.rmtree(str(dir_path.resolve()))
400
return PreprocessResult(
401
processed_bytes=processed_bytes,
402
debug_handle_map=debug_handle_map,
0 commit comments