Skip to content

Commit

Permalink
Fix constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
tbennun committed Sep 24, 2023
1 parent 6cae4a8 commit 1b6a912
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dace/libraries/standard/nodes/reduce.py
Original file line number Diff line number Diff line change
Expand Up @@ -1578,7 +1578,7 @@ def __init__(self,

@staticmethod
def from_json(json_obj, context=None):
ret = Reduce("lambda a, b: a", None)
ret = Reduce('reduce', 'lambda a, b: a', None)
dace.serialize.set_properties_from_json(ret, json_obj, context=context)
return ret

Expand Down
2 changes: 1 addition & 1 deletion tests/symbol_dependent_transients_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def _make_sdfg(name, storage=dace.dtypes.StorageType.CPU_Heap, isview=False):
body2_state.add_nedge(read_a, read_tmp1, dace.Memlet(f'A[2:{N}-2, 2:{N}-2, i:{N}]'))
else:
read_tmp1 = body2_state.add_read('tmp1')
rednode = standard.Reduce(wcr='lambda a, b : a + b', identity=0)
rednode = standard.Reduce('sum', wcr='lambda a, b : a + b', identity=0)
if storage == dace.dtypes.StorageType.GPU_Global:
rednode.implementation = 'CUDA (device)'
elif storage == dace.dtypes.StorageType.FPGA_Global:
Expand Down

0 comments on commit 1b6a912

Please sign in to comment.