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 Oct 19, 2021
1 parent e30558c commit 61bde22
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lite/kernels/nnadapter/converter/expand_v2.cc
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ int ConvertExpandV2(Converter* converter, OpInfo* op, Scope* scope) {
std::vector<NNAdapterOperand*> input_operands = {input_operand,
shape_operand};
std::vector<NNAdapterOperand*> output_operands = {output_operand};
converter->AddOperation(NNADAPTER_EXPAND, &input_operands, &output_operands);

converter->AddOperation(
NNADAPTER_EXPAND, {input_operand, shape_operand}, {output_operand});
return NO_ERROR;
}

Expand Down
4 changes: 3 additions & 1 deletion lite/kernels/nnadapter/converter/range.cc
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ int ConvertRange(Converter* converter, OpInfo* op, Scope* scope) {
std::vector<NNAdapterOperand*> input_operands = {
start_operand, end_operand, step_operand};
std::vector<NNAdapterOperand*> output_operands = {output_operand};
converter->AddOperation(NNADAPTER_RANGE, &input_operands, &output_operands);
converter->AddOperation(NNADAPTER_EXPAND,
{start_operand, end_operand, step_operand},
{output_operand});
return NO_ERROR;
}

Expand Down

0 comments on commit 61bde22

Please sign in to comment.