Skip to content

Commit

Permalink
fixed quant fc qtype bug
Browse files Browse the repository at this point in the history
Signed-off-by: Chen <[email protected]>
  • Loading branch information
Chen authored and sunshinemyson committed Sep 15, 2023
1 parent b241317 commit d8552f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions op_map.cc
Original file line number Diff line number Diff line change
Expand Up @@ -871,8 +871,8 @@ struct FullyConnectedMapper
if (outputs[0]->GetShape().size() > 2) {
std::vector<uint32_t> real_output_shape = { weight_tensor->GetShape()[1],
temp_batch};
tim::vx::TensorSpec real_output_spec(inputs[0]->GetDataType(),
real_output_shape, tim::vx::TensorAttribute::TRANSIENT);
tim::vx::TensorSpec real_output_spec(outputs[0]->GetSpec());
real_output_spec.SetShape(real_output_shape);
auto real_output = delegate->GetGraph()->CreateTensor(real_output_spec);

(*op).BindOutput(real_output);
Expand Down

0 comments on commit d8552f8

Please sign in to comment.