From 32cd8d8135e523f92c98196f150a734f3dd6d2a4 Mon Sep 17 00:00:00 2001 From: caifubi Date: Mon, 21 Sep 2020 09:54:17 +0800 Subject: [PATCH] fix codex --- mindspore/ccsrc/debug/data_dump/e2e_dump_util.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mindspore/ccsrc/debug/data_dump/e2e_dump_util.cc b/mindspore/ccsrc/debug/data_dump/e2e_dump_util.cc index b551270893..664dab47d3 100644 --- a/mindspore/ccsrc/debug/data_dump/e2e_dump_util.cc +++ b/mindspore/ccsrc/debug/data_dump/e2e_dump_util.cc @@ -64,8 +64,11 @@ void E2eDumpUtil::DumpGPUMemToFile(const std::string &file_path, const std::stri const ShapeVector &int_shapes, const TypeId &type, size_t slot, Debugger *debugger) { #ifdef ENABLE_DEBUGGER auto format = kOpFormat_DEFAULT; + MS_EXCEPTION_IF_NULL(debugger); DebugServices *debug_services = debugger->debug_services(); + MS_EXCEPTION_IF_NULL(debug_services); TensorLoader *tensor_loader = debug_services->tensor_loader(); + MS_EXCEPTION_IF_NULL(tensor_loader); auto ret = tensor_loader->DumpTensorToFile(original_kernel_name, trans_flag, file_path, format, int_shapes, type, addr->type_id(), addr->format(), slot); if (!ret) {