Attention Is All You Need
通常来说,主流序列传导模型大多基于 RNN 或 CNN。Google 此次推出的翻译框架—Transformer 则完全舍弃了 RNN/CNN 结构,从自然语言本身的特性出发,实现了完全基于注意力机制的 Transformer 机器翻译网络架构...
近在应用开发中为了做到更好的用户体验,需要让ListView记住上次滑动到的位置,使用getScrollY()方法总是返回0,到最后也没搞懂是为啥。
最后在谷歌上找到了这个,实验了一下,还真可以~// save index and top position
int index = mList.ge...
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in o...