!13514 [MS][LITE]fix bug of strided slice

From: @fuzhiye
Reviewed-by: @zhang_xue_tong,@zhanghaibo5
Signed-off-by: @zhang_xue_tong
This commit is contained in:
mindspore-ci-bot 2021-03-18 11:16:28 +08:00 committed by Gitee
commit ad1658b928
1 changed files with 3 additions and 1 deletions

View File

@ -37,7 +37,9 @@ int StridedSliceCPUKernel::Init() {
void StridedSliceCPUKernel::InitFastRunParam() {
auto in_shape = in_tensors_.front()->shape();
auto out_shape = out_tensors_.front()->shape();
// cal inner, outer
// reset && cal inner, outer
outer_ = 1;
inner_ = 1;
for (int i = 0; i < split_axis_; ++i) {
outer_ *= in_shape[i];
}