Skip to content

Commit

Permalink
[Driver] Update comment
Browse files Browse the repository at this point in the history
johnnoel committed Nov 8, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 2a2afc6 commit 86a96e9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/finn/qnn-data/templates/driver/driver_base.py
Original file line number Diff line number Diff line change
@@ -197,8 +197,7 @@ def load_runtime_weights(self, flush_accel=True, verify=True):
# Pynq for Alveo uses tinynumpy under the hood. There is a bug when going
# from a tinynumpy.ndarray to numpy.ndarray. To work around this, we first
# convert the tinynumpy.ndarray to a list and then copy the list to a
# numpy.ndarray. This shouldn't affect the non-alveo platforms so no need to
# check platform.
# numpy.ndarray.
new_w = np.copy(
list(layer_mmio.array[: layer_w.shape[0]]), dtype=layer_w.dtype
)

0 comments on commit 86a96e9

Please sign in to comment.