diff --git a/dace/transformation/interstate/gpu_transform_sdfg.py b/dace/transformation/interstate/gpu_transform_sdfg.py index 3f0248836e..823d599737 100644 --- a/dace/transformation/interstate/gpu_transform_sdfg.py +++ b/dace/transformation/interstate/gpu_transform_sdfg.py @@ -161,7 +161,7 @@ def can_be_applied(self, graph, expr_index, sdfg, permissive=False): return True def _get_marked_inputs_and_outputs(self, state, entry_node) -> list: - if (self.host_data is None or self.host_data == []) and (self.host_maps is None or self.host_maps == []): + if not self.host_data and not self.host_maps: return [] marked_sources = [state.memlet_tree(e).root().edge.src for e in state.in_edges(entry_node)] marked_destinations = [state.memlet_tree(e).root().edge.dst for e in state.in_edges(state.exit_node(entry_node))]