forked from mindspore-Ecosystem/mindspore
!47998 fix the operator param empty when dump operator info to file
Merge pull request !47998 from maoyaomin/mym_debugger_kernel_dumper
This commit is contained in:
commit
34fa36b9f8
|
@ -694,6 +694,10 @@ AscendDeviceAddress::~AscendDeviceAddress() {
|
|||
*/
|
||||
bool AscendDeviceAddress::DumpMemToFile(const std::string &filepath, const std::string &host_fmt,
|
||||
const ShapeVector &host_shape, TypeId host_type, bool trans_flag) const {
|
||||
if (size_ == 0) {
|
||||
MS_LOG(INFO) << "the operator in filepath: " << filepath << ", size_ = 0";
|
||||
return true;
|
||||
}
|
||||
bool ret = false;
|
||||
if (filepath.empty()) {
|
||||
MS_LOG(ERROR) << "Dump file path is null!";
|
||||
|
|
Loading…
Reference in New Issue