提交 58b0eda0 编写于 作者: M mindspore-ci-bot 提交者: Gitee

!2711 remove useless code

Merge pull request !2711 from zyli2020/fix_code_review_warnings
......@@ -18,7 +18,6 @@
#include <vector>
#include "device/gpu/gpu_device_manager.h"
#include "utils/log_adapter.h"
#include "utils/context/ms_context.h"
#include "device/gpu/gpu_memory_allocator.h"
namespace mindspore {
......@@ -55,8 +54,6 @@ GPUDeviceAddress::~GPUDeviceAddress() {
if (ptr_ == nullptr) {
return;
}
auto ms_context = MsContext::GetInstance();
MS_EXCEPTION_IF_NULL(ms_context);
if (from_mem_pool_) {
GPUMemoryAllocator::GetInstance().FreeTensorMem(ptr_);
ptr_ = nullptr;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册