Skip to content

Commit

Permalink
[Cherry-pick][NNAdapter][AmlogicNPU] Remove the transpose operation o…
Browse files Browse the repository at this point in the history
…f the input of fc to fix the MobileNetV1 and ResNet50 (#7750)

test=develop test=huawei_ascend_npu
  • Loading branch information
yingshengBD authored Nov 27, 2021
1 parent 5b3ff57 commit fec57de
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 84 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include <algorithm>
#include <vector>
#include "driver/amlogic_npu/converter/converter.h"
#include "driver/amlogic_npu/optimizer/transpose_op_dimensions.h"
#include "driver/amlogic_npu/optimizer/unpack_op_fusion.h"
#include "optimizer/fuse_matmul_add_into_fully_connected.h"
#include "optimizer/symm2asymm.h"
Expand Down Expand Up @@ -60,7 +59,6 @@ int Program::BuildFromModel(hal::Model* model) {
NNADAPTER_VLOG(5) << "Origin model:" << std::endl << Visualize(model);
UnpackOpFusion(model);
FuseMatMulAddIntoFullyConnected(model);
TransposeOpDimensions(model);
ConvertQuantizationSymmToAsymm(model);
NNADAPTER_VLOG(5) << "Optimized model:" << std::endl << Visualize(model);
// Convert a NNAdapter model to a amlnpu graph
Expand Down

This file was deleted.

This file was deleted.

0 comments on commit fec57de

Please sign in to comment.