Embedding Variable
Embedding Variable使用key,value键值对形式存储稀疏数据,它具有以下特点:
- EV, like Variable, is stateful operation. It stores sparse parameters. It only used in Embedding Layer.
- EV can connect necessary Operations to build a whole graph, such as: Gather, SparseApply, Save, Send Op.
- EV’s first dimension is dynamic. EV can enlarge or shrink in reasonable range according to user‘s configuration.
- EV send/receive via rendezvous without extra memory copy.
- EV supports incremental checkpoint to speed up model save/restore and save disk space.
References:
[1]: 社区分享 | TensorFlow Recommenders-Addons 现已开源,让推荐系统效果更好!