• L
    Clean text.py and decode.py for API 2.0 (#26853) (#27958) · 4316bd4d
    LiuChiachi 提交于
    * 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>
    4316bd4d
rnn.py 158.6 KB