An optimizer that trains as fast as Adam and as good as SGD. https://www.luolc.com/publications/ad…

设立3个指针pa、pb和pc,其中pa和pb分别指向La表和Lb表中当前待比较插入的结点,而pc指向Lc表中当前最后一个结点;
若pa->data<=pb->data,则将pa所指结点链接到pc所指结点之后,否则将pb所指结点链接到pc所指结点之后;
由于链表的长度为隐含的,则第一个循环执行的条件是pa和pb皆非空,当其中一个为空时,
说明有一个表的元素已归并万,则只要将另一个表的剩余段链接在pc所指结点之后即可。

 

An optimizer that trains as fast as Adam and as good as SGD. https://www.luolc.com/publications/ad…
 
 
 
posted @ 2019-02-27 12:11  papering  阅读(227)  评论(0编辑  收藏  举报