!48721 fix the cpu device address copy bug in the different type id

Merge pull request !48721 from limingqi107/bug_fix3
This commit is contained in:
i-robot 2023-02-13 08:42:14 +00:00 committed by Gitee
commit 124911d0ef
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 0 additions and 4 deletions

View File

@ -249,10 +249,6 @@ bool CPUDeviceAddress::SyncDeviceToDevice(const ShapeVector &, size_t size, Type
MS_LOG(INFO) << "No need sync, src device size: " << size << ", dst device size: " << size_;
return true;
}
if (size_ < size) {
MS_LOG(ERROR) << "Src size is greater than det size, src size is: " << size << ", dst size is: " << size_;
return false;
}
if (format_ != format) {
MS_LOG(ERROR) << "Format is different, src(format:" << format << "), dst(format:" << format_ << ").";
return false;