ai-matrix icon indicating copy to clipboard operation
ai-matrix copied to clipboard

Use dense Adam by convert indexedslices to tensor in DIEN

Open retonym opened this issue 5 years ago • 3 comments

The new implementation converts indexedslices to tensor in Adam optimizer. Tensorflow use a single op "apply_adam" to deal with tensors, while use many small ops to deal wth indexedslices in sparse Adam implementation. To use tensors avoids to load these small ops repeatedly and saves time. In my experiment, this change improves about 12% throughput with batch size 128 on Intel Xeon 8260 processors.

retonym avatar Jul 07 '20 02:07 retonym

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

CLAassistant avatar Jul 07 '20 02:07 CLAassistant

@retonym your CLA is not signed, please check the reply of @CLAassistant to continue the process.

Zantares avatar Jul 16 '20 10:07 Zantares

I have move the changes of this PR to DIEN_TF2 folder. It will not influence the code in the original DIEN folder.

retonym avatar Jul 27 '20 05:07 retonym