!8821 Modify alarm on master

From: @shenwei41
Reviewed-by: @pandoublefeng
Signed-off-by:
pull/8821/MERGE
mindspore-ci-bot 4 years ago committed by Gitee
commit 010d950c01

@ -69,7 +69,7 @@ class Allocator {
} }
pointer allocate(std::size_t n) { pointer allocate(std::size_t n) {
void *p; void *p = nullptr;
Status rc = pool_->Allocate(n * sizeof(T), &p); Status rc = pool_->Allocate(n * sizeof(T), &p);
if (rc.IsOk()) { if (rc.IsOk()) {
return reinterpret_cast<pointer>(p); return reinterpret_cast<pointer>(p);

Loading…
Cancel
Save