Skip to content

Commit

Permalink
[NNAdapter] Fix the error of slice constant folding calculation (#9542)
Browse files Browse the repository at this point in the history
  • Loading branch information
shentanyue authored Oct 14, 2022
1 parent 3edc805 commit 0e38642
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ static int slice(const T* input_data,
std::vector<int32_t> output_shape(input_shape);
std::vector<int> real_starts(input_shape.size(), 0);
std::vector<int> real_ends(input_shape.size(), 0);
std::vector<int> real_step(input_shape.size(), 0);
std::vector<int> real_step(input_shape.size(), 1);
for (size_t i = 0; i < input_shape.size(); i++) {
real_ends[i] = input_shape[i];
}
Expand Down

0 comments on commit 0e38642

Please sign in to comment.