Skip to content

Commit 3fc577c

Browse files
committed
fix typo
1 parent f7b2618 commit 3fc577c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

python_coreml_stable_diffusion/chunk_mlprogram.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ def _make_second_chunk_prog(prog, op_idx):
231231
return prog
232232

233233

234-
def _legancy_model_chunking(args):
234+
def _legacy_model_chunking(args):
235235
# TODO: Remove this method after setting the coremltools dependency >= 8.0
236236
os.makedirs(args.o, exist_ok=True)
237237

@@ -344,13 +344,13 @@ def main(args):
344344

345345
if ct_version != "8.0b2" and ct_version < "8.0":
346346
# With coremltools version <= 8.0b1,
347-
# we use the lagancy implementation.
347+
# we use the legacy implementation.
348348
# TODO: Remove the logic after setting the coremltools dependency >= 8.0.
349349
logger.info(
350350
f"coremltools version {ct_version} detected. Recommended upgrading the package version to "
351351
f"'8.0b2' when you running chunk_mlprogram.py script for the latest supports and bug fixes."
352352
)
353-
_legancy_model_chunking(args)
353+
_legacy_model_chunking(args)
354354
else:
355355
# Starting from coremltools==8.0b2, there is this `bisect_model` API that
356356
# we can directly call into.

0 commit comments

Comments
 (0)