!7683 [fix codedex warning] variable name is same as weak encryption algorithms name

Merge pull request !7683 from zyli2020/bug_fix
This commit is contained in:
mindspore-ci-bot 2020-10-26 09:43:36 +08:00 committed by Gitee
commit b4ff4261b0
1 changed files with 4 additions and 4 deletions

View File

@ -450,13 +450,13 @@ size_t MemSwapManager::BestSwapInPerformPos(const AnfNodePtr &trigger_kernel, co
return pos;
}
void MemSwapManager::MoveSwapInfoPos(size_t des_pos, size_t src_pos, const MemSwapInfo &mem_swap_info) {
if (des_pos == src_pos) {
void MemSwapManager::MoveSwapInfoPos(size_t dest_pos, size_t src_pos, const MemSwapInfo &mem_swap_info) {
if (dest_pos == src_pos) {
MS_LOG(EXCEPTION) << "destination pos can not equal source pos";
}
auto des_kernel = QueryKernelByTopoOrder(des_pos);
auto dest_kernel = QueryKernelByTopoOrder(dest_pos);
auto src_kernel = QueryKernelByTopoOrder(src_pos);
AddKernelMemSwapInfo(des_kernel, mem_swap_info);
AddKernelMemSwapInfo(dest_kernel, mem_swap_info);
RemoveKernelMemSwapInfo(src_kernel, mem_swap_info);
}