Browse Source

fix bug of op space_to_depth

tags/v1.0.0
tao_yunhao 5 years ago
parent
commit
cf52dbb46d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      mindspore/lite/src/runtime/kernel/arm/fp32/space_to_depth.cc

+ 1
- 1
mindspore/lite/src/runtime/kernel/arm/fp32/space_to_depth.cc View File

@@ -50,7 +50,7 @@ int SpaceToDepthCPUKernel::ReSize() {
return RET_FORMAT_ERR;
}

num_unit_ = static_cast<int>(in_tensors_[0]->shape().at(kNHWC_H));
num_unit_ = static_cast<int>(out_tensors_[0]->shape().at(kNHWC_H));
thread_h_num_ = MSMIN(op_parameter_->thread_num_, num_unit_);
thread_h_stride_ = UP_DIV(num_unit_, thread_h_num_);
return RET_OK;


Loading…
Cancel
Save