Skip to content

Commit 4bb417e

Browse files
authored
Fix typos (#2528)
1 parent 6ace975 commit 4bb417e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

coremltools/converters/mil/backend/mil/load.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ def _decouple_state_and_input(
619619
List["proto.Model_pb2.FeatureDescription"], List["proto.Model_pb2.FeatureDescription"]
620620
]:
621621
"""
622-
Utils seperates state input from non-state input features.
622+
Utils separates state input from non-state input features.
623623
"""
624624
state_features = []
625625
non_state_input_features = []

coremltools/converters/mil/backend/mil/test_load.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -964,7 +964,7 @@ def func_1(y):
964964
# main function is the default function
965965
self.verify_stateful_model(mlmodel, np.zeros((3,)))
966966

967-
# save the mlmodel on disk, and load "main" and "func_1" seperately
967+
# save the mlmodel on disk, and load "main" and "func_1" separately
968968
package_path = tempfile.mkdtemp(suffix=".mlpackage")
969969
mlmodel.save(package_path)
970970

coremltools/converters/mil/mil/passes/defs/optimize_repeat_ops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ def _fuse_casts_ops_across_blocks(self, block: Block, ops_to_fused: Tuple[Operat
575575
def _fuse_or_cancel_consecutive_casts_block_wrapper(self, block):
576576
def _fuse_or_cancel_consecutive_casts_block(block, cast_ops_across_blocks):
577577
# We first make sure all the inner blocks are optimized
578-
# It is important to do it seperately in the very beginning, to ensure the last step of optimization cast ops across the block boundary is correct.
578+
# It is important to do it separately in the very beginning, to ensure the last step of optimization cast ops across the block boundary is correct.
579579
for op in block.operations:
580580
for b in op.blocks:
581581
self._fuse_or_cancel_consecutive_casts_block_wrapper(b)

0 commit comments

Comments
 (0)