提交 a1b79288 编写于 作者: M mindspore-ci-bot 提交者: Gitee

!5578 Fix sparse slicer leak

Merge pull request !5578 from ZPaC/master-fix-sparse-slice-leak
...@@ -502,6 +502,11 @@ void WorkerProxy<T>::SparseSlicer(int timestamp, const ::ps::KVPairs<T> &send, c ...@@ -502,6 +502,11 @@ void WorkerProxy<T>::SparseSlicer(int timestamp, const ::ps::KVPairs<T> &send, c
kvs.lens = reduced_lens; kvs.lens = reduced_lens;
kvs.vals = reduced_data; kvs.vals = reduced_data;
delete[] src_grad_data;
delete[] src_indice_data;
delete[] new_grad;
delete[] new_indices;
} }
if (indices_size <= 0) { if (indices_size <= 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册