Skip to content

Commit

Permalink
Merge pull request #1163 from Xilinx/fix/mvau_hw_op_exec
Browse files Browse the repository at this point in the history
Extension of execution function of MVAU HW op
  • Loading branch information
auphelia authored Sep 18, 2024
2 parents 37837df + e22201f commit d575f4c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/finn/custom_op/fpgadataflow/matrixvectoractivation.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ def get_nodeattr_types(self):
def execute_node(self, context, graph):
node = self.onnx_node
in_act = context[node.input[0]]
# ensure that shape is compatible
in_act = in_act.reshape(self.get_normal_input_shape())
mvau_w_init = [x for x in graph.initializer if x.name == node.input[1]][0]
mvau_w = np_helper.to_array(mvau_w_init)
# Matrix multiplication
Expand Down

0 comments on commit d575f4c

Please sign in to comment.