Browse Source

!439 Fix interface modification

Merge pull request !439 from liubuyu/dev_lby
tags/v0.2.0-alpha
mindspore-ci-bot Gitee 6 years ago
parent
commit
2fb45970d1
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      mindspore/ccsrc/device/ascend/ascend_device_address.cc

+ 1
- 1
mindspore/ccsrc/device/ascend/ascend_device_address.cc View File

@@ -117,7 +117,7 @@ bool AscendDeviceAddress::SyncDeviceToHost(const std::vector<int> &shape, size_t
} else {
auto iter = kNeedTransFormatSet.find(format_);
if (iter != kNeedTransFormatSet.end()) {
sync_ok = ConvertFormatAndSyncHostToDevice(shape, size, type, host_ptr);
sync_ok = SyncDeviceToHostAndConvertFormat(shape, size, type, host_ptr);
}
}
if (!sync_ok) {


Loading…
Cancel
Save