Clean text.py and decode.py for API 2.0 (#26853) (#27958)
* Make dynamic_decode support dygraph and expose to API 2.0 test=develop * update info about BeamSearchDecoder and dynamic_decode * remove all APIs in paddle.text, expose BeamSearchDecoder and dynamic_decode * update example code * delete test_text.py, decode.py, update some doc, fix example code float64 * delete decode import from paddle.nn * fix unittest bugs * use dygraph.Embedding instead of nn.Embedding, add paddle.enbale_static() * update, correct doc * move dynamic_decode, BeamSearchDecoder API to paddle.nn * fix code style * update unittest param, delete import pf text.py * set dtype of beamsearchtest float64 * update example code of BeamSearchDecoder, dynamic_decode Co-authored-by: NLiuChiaChi <709153940@qq.com> Co-authored-by: NGuo Sheng <whucsgs@163.com>
Showing
python/paddle/nn/decode.py
0 → 100644
此差异已折叠。
python/paddle/text/text.py
已删除
100644 → 0
此差异已折叠。
想要评论请 注册 或 登录