• L
    Update save inference model to support dygraph (#25894) · 761ed17d
    LiuChiachi 提交于
    * update save_inference_model for hapi
    
    * update save_inference_model to support dygraph
    
    * fix comments
    
    * fix comments
    
    * test=develop
    
    * test, test=develop
    
    * fix dim test, test=develop
    
    * test, test=develop
    
    * add test_export_deploy_model_dynamic
    
    * fix unittest for hapi: save_inference_model
    
    * fix code style
    
    * accept review by guoshengCS
    
    * fix coverage rate
    
    * update doc for save_inference_model and copyright
    
    * change test model back to LeNet() in test_export_deploy_model
    
    * copy jit.save, use LeNet() to test export deploy model
    
    * add return value for dygraph, and fix doc error
    
    * corrected the doc writing
    
    * Delete redundant import and correct import order in sample code.
    
    * remove 'fluid' and add prepare() and fit() in sample code
    
    * correct usage of API 2.0 in sample code
    
    * fix sample code bugs
    
    * fix code style bugs
    
    * fix test_model.py bugs
    
    * set for_inference=True
    
    * correct usage for static.InputSpec
    
    * update doc for model.save
    
    * correct usage of API 2.0
    
    * rename param name for model.save
    
    * correct for_inference as training
    761ed17d
test_model.py 18.4 KB