Browse Source

!9610 [MSLITE][Develop] fix code review

From: @sunsuodong
Reviewed-by: @zhanghaibo5,@zhang_xue_tong
Signed-off-by: @zhanghaibo5,@zhang_xue_tong
tags/v1.1.0
mindspore-ci-bot Gitee 5 years ago
parent
commit
1752430b74
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      mindspore/lite/src/ops/populate/space_to_batch_nd_populate.cc

+ 2
- 2
mindspore/lite/src/ops/populate/space_to_batch_nd_populate.cc View File

@@ -23,9 +23,9 @@
namespace mindspore {
namespace lite {
OpParameter *PopulateSpaceToBatchNDParameter(const mindspore::lite::PrimitiveC *primitive) {
auto *space_batch_param_nd = new (std::nothrow) SpaceToBatchParameter();
auto *space_batch_param_nd = reinterpret_cast<SpaceToBatchParameter *>(malloc(sizeof(SpaceToBatchParameter)));
if (space_batch_param_nd == nullptr) {
MS_LOG(ERROR) << "new SpaceToBatchParameter failed.";
MS_LOG(ERROR) << "malloc SpaceToBatchParameter failed.";
return nullptr;
}



Loading…
Cancel
Save