Skip to content

Commit 2fcaa3b

Browse files
committed
fix: correct typo 'occured' to 'occurred' in error messages
1 parent 4e73ff0 commit 2fcaa3b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

nemo/core/classes/common.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ def _validate_input_types(self, input_types=None, ignore_collections=False, **kw
360360

361361
if type_shape is not None and len(value_shape) != len(type_shape):
362362
raise TypeError(
363-
f"Input shape mismatch occured for {name} in module {self.__class__.__name__} : \n"
363+
f"Input shape mismatch occurred for {name} in module {self.__class__.__name__} : \n"
364364
f"Input shape expected = {metadata.base_types[key].axes} | \n"
365365
f"Input shape found : {value_shape}"
366366
)
@@ -447,7 +447,7 @@ def _attach_and_validate_output_types(self, out_objects, ignore_collections=Fals
447447

448448
if type_shape is not None and len(value_shape) != len(type_shape):
449449
raise TypeError(
450-
f"Output shape mismatch occured for {name} in module {self.__class__.__name__} : \n"
450+
f"Output shape mismatch occurred for {name} in module {self.__class__.__name__} : \n"
451451
f"Output shape expected = {type_shape} | \n"
452452
f"Output shape found : {value_shape}"
453453
)
@@ -535,7 +535,7 @@ def __check_neural_type(self, obj, metadata: TypecheckMetadata, depth: int, name
535535

536536
if type_shape is not None and len(value_shape) != len(type_shape):
537537
raise TypeError(
538-
f"Input shape mismatch occured for {name} in module {self.__class__.__name__} : \n"
538+
f"Input shape mismatch occurred for {name} in module {self.__class__.__name__} : \n"
539539
f"Input shape expected = {type_shape} | \n"
540540
f"Input shape found : {value_shape}"
541541
)
@@ -578,7 +578,7 @@ def __attach_neural_type(self, obj, metadata: TypecheckMetadata, depth: int, nam
578578

579579
if type_shape is not None and len(value_shape) != len(type_shape):
580580
raise TypeError(
581-
f"Output shape mismatch occured for {name} in module {self.__class__.__name__} : \n"
581+
f"Output shape mismatch occurred for {name} in module {self.__class__.__name__} : \n"
582582
f"Output shape expected = {type_shape} | \n"
583583
f"Output shape found : {value_shape}"
584584
)

0 commit comments

Comments
 (0)