Skip to content

Commit

Permalink
WIP - DVS node not given
Browse files Browse the repository at this point in the history
construct_destination_map() has func. handling destination mapping of DVSLayer inside its call now
  • Loading branch information
Willian-Girao committed Oct 29, 2024
1 parent c945a41 commit 22b69c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sinabs/backend/dynapcnn/dynapcnn_layer_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ def construct_dynapcnnlayers_from_mapper(

destination_map = construct_destination_map(dcnnl_map)

# update mapper if a DVS layer exists.
update_destination_map_with_dvs(dcnnl_map, destination_map)

entry_points = collect_entry_points(dcnnl_map)

return dynapcnn_layers, destination_map, entry_points
Expand Down Expand Up @@ -284,6 +281,9 @@ def construct_destination_map(dcnnl_map: Dict[int, Dict]) -> Dict[int, List[int]
destination_indices.append(dest_idx)
destination_map[layer_index] = destination_indices

# update mapper if a DVS layer exists.
update_destination_map_with_dvs(dcnnl_map, destination_map)

return destination_map


Expand Down

0 comments on commit 22b69c6

Please sign in to comment.