Skip to content

Commit

Permalink
test=huawei_ascend_npu
Browse files Browse the repository at this point in the history
  • Loading branch information
shentanyue committed Jan 20, 2022
1 parent d734d3a commit 10c4c9e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lite/kernels/nnadapter/converter/interpolate.cc
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,7 @@ int ConvertInterpolate(Converter* converter, OpInfo* op, Scope* scope) {
int align_mode =
op->HasAttr("align_mode") ? op->GetAttr<int>("align_mode") : 1;
if (align_mode == 0 && align_corners) {
auto align_corners_operand = converter->AddConstantOperand(false);
input_operands[3] = align_corners_operand;
align_mode = 1;
}
auto align_mode_operand = converter->AddConstantOperand(align_mode);
input_operands.push_back(align_mode_operand);
Expand Down

0 comments on commit 10c4c9e

Please sign in to comment.