Skip to content

Commit

Permalink
Get 2d size correct
Browse files Browse the repository at this point in the history
  • Loading branch information
rowleya authored Oct 12, 2024
1 parent 6daa42a commit 151820f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -523,9 +523,9 @@ def gen_connector_params(
def gen_connector_params_size_in_bytes(self) -> int:
size = N_KERNEL_PARAMS * BYTES_PER_WORD
if self._krn_weights is not None:
size += len(self._krn_weights) * BYTES_PER_WORD
size += sum(len(x) for x in self._krn_weights) * BYTES_PER_WORD
if self._krn_delays is not None:
size += len(self._krn_delays) * BYTES_PER_WORD
size += sum(len(x) for x in self._krn_delays) * BYTES_PER_WORD
return size

@overrides(AbstractGenerateConnectorOnMachine.get_connected_vertices)
Expand Down

0 comments on commit 151820f

Please sign in to comment.