Skip to content

Commit f271b30

Browse files
committed
fix memlet symbol replacement
1 parent 51cdbf3 commit f271b30

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

dace/memlet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ def replace(self, repl_dict):
469469
for symbol in repl_dict:
470470
if str(symbol) != str(repl_dict[symbol]):
471471
intermediate = symbolic.symbol('__dacesym_' + str(symbol))
472-
repl_to_intermediate[symbolic.symbol(symbol)] = intermediate
472+
repl_to_intermediate[symbol] = intermediate
473473
repl_to_final[intermediate] = repl_dict[symbol]
474474

475475
if len(repl_to_intermediate) > 0:

tests/numpy/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def compare_numpy_output(device=dace.dtypes.DeviceType.CPU,
2626
(including errors).
2727
2828
`func` will be run once as a dace program, and once using python.
29-
The inputs to the function will be randomly intialized arrays with
29+
The inputs to the function will be randomly initialized arrays with
3030
shapes and dtypes according to the argument annotations.
3131
3232
Note that this should be used *instead* of the `@dace.program`

0 commit comments

Comments
 (0)