• G
    Clean text.py and decode.py for API 2.0 (#26853) · 01335815
    Guo Sheng 提交于
    * 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>
    01335815
test_rnn_decode_api.py 27.8 KB