From 852e61d46cf3995c74af4d1b0b7878daa5a56299 Mon Sep 17 00:00:00 2001 From: liubuyu Date: Sat, 18 Apr 2020 09:49:12 +0800 Subject: [PATCH] bug fix --- mindspore/ccsrc/device/ascend/ascend_device_address.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mindspore/ccsrc/device/ascend/ascend_device_address.cc b/mindspore/ccsrc/device/ascend/ascend_device_address.cc index f0a30e4c42..79241df612 100644 --- a/mindspore/ccsrc/device/ascend/ascend_device_address.cc +++ b/mindspore/ccsrc/device/ascend/ascend_device_address.cc @@ -117,7 +117,7 @@ bool AscendDeviceAddress::SyncDeviceToHost(const std::vector &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) {