Skip to content

Commit

Permalink
[Cherry-Pick][HuaweiKirinNPU] Fix the converter of fc op for Harmony …
Browse files Browse the repository at this point in the history
  • Loading branch information
TangYuan-Liu authored Jan 22, 2022
1 parent a1617bb commit 07e5d99
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lite/kernels/npu/bridges/fc_op.cc
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ int FCConverter(void* ctx, OpLite* op, KernelBase* kernel) {
auto fc_op = fc_node->data<ge::op::FullConnection>();
fc_op->set_input_x(*reshaped_input_node->data());
fc_op->set_input_w(*trans_w_node->data());
fc_op->set_attr_num_output(n);

// Add bias node if bias tensor exists
if (HasInputArg(op_info, scope, "Bias")) {
Expand Down

0 comments on commit 07e5d99

Please sign in to comment.