forked from mindspore-Ecosystem/mindspore
!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:
commit
b4ff4261b0
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue