Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos #1917

Merged
merged 1 commit into from
Feb 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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