Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
romanc committed Jan 31, 2025
1 parent 45b00ee commit d7d278d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dace/sdfg/sdfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -922,7 +922,7 @@ def prepend_exit_code(self, cpp_code: str, location: str = 'frame'):

def append_transformation(self, transformation):
"""
Appends a transformation to the treansformation history of this SDFG.
Appends a transformation to the transformation history of this SDFG.
If this is the first transformation being applied, it also saves the
initial state of the SDFG to return to and play back the history.
Expand Down
2 changes: 1 addition & 1 deletion dace/sdfg/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ def validate_sdfg(sdfg: 'dace.sdfg.SDFG', references: Set[int] = None, **context
elif const_name in sdfg.symbols:
if const_type.dtype != sdfg.symbols[const_name]:
# This should actually be an error, but there is a lots of code that depends on it.
warnings.warn(f'Mismatch between constant and symobl type of "{const_name}", '
warnings.warn(f'Mismatch between constant and symbol type of "{const_name}", '
f'expected to find "{const_type}" but found "{sdfg.symbols[const_name]}".')
else:
warnings.warn(f'Found constant "{const_name}" that does not refer to an array or a symbol.')
Expand Down
2 changes: 1 addition & 1 deletion dace/transformation/transformation.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ def _can_be_applied_and_apply(
If `apply` is `True` then the function will apply the transformation, if `verify`
is also `True` the function will first call `can_be_applied()` to ensure the
transformation can be applied. If not an error is genrated.
transformation can be applied. If not, an error is generated.
If `apply` is `False` the function will only call `can_be_applied()` and
returns its result.
Expand Down

0 comments on commit d7d278d

Please sign in to comment.