1. 26 4月, 2021 1 次提交
  2. 15 4月, 2021 1 次提交
    • J
      Update hapi to support AMP (#31417) · fabdb43c
      Jiaqi Liu 提交于
      * make hapi support amp, and add unittest
      
      * make unittest only support GPU
      
      * update parameters for amp in hapi.Model
      
      * update hapi.Model.prepare interface, and update unittest
      
      * fix test_model.py unittest bug
      
      * add grad clear in dygraph
      
      * use_fp16_guard defaults to True, which could avoid nan
      
      * add input check, and add internal doc link to low level api
      
      * update doc, and decrease the sample num of dataset to avoid timeout
      
      * make hapi amp param  support str 'O1' or 'O2'
      
      * resume calling , modify the code of the check part
      
      * upgrade the usage of Fleet API, and disable 'pure_fp16' param
      fabdb43c
  3. 01 12月, 2020 1 次提交
  4. 26 11月, 2020 2 次提交
  5. 23 11月, 2020 2 次提交
  6. 16 11月, 2020 1 次提交
  7. 28 10月, 2020 1 次提交
  8. 22 10月, 2020 1 次提交
    • L
      Update hapi predict interface (#28180) · 68449d19
      LielinJiang 提交于
      * update hapi predict interface
      
      * fix code style
      
      * fix docs
      
      * fix docs
      
      * fix docs
      
      * update docs
      
      * fix codes style
      
      * fix unittest
      
      * fix unittest
      
      * fix coverage
      68449d19
  9. 21 10月, 2020 1 次提交
    • C
      2.0rc api rename (#28088) · 7c1aa0d6
      cnn 提交于
      * rename manual_seed to seed
      
      * rename xxx1d-->xxx1D, xxx2d-->xxx2D, xxx3d-->xxx3D
      
      * rename manual_seed --> seed
      
      * do not rename .cc, .cu and .h file
      
      * rename manual_seed --> seed
      
      * rename manual_seed --> seed
      
      * rename manual_seed --> seed
      
      * rename manual_seed --> seed
      
      * disable_static on doc example code
      
      * donot change manual_seed on generator
      
      * add enable_static on sample code
      
      * convert python/paddle/fluid/layers/nn.py to bak
      
      * fix typo
      
      * fix code style
      
      * fix seed to manual_seed when call functions of Generator()
      
      * fix bug
      7c1aa0d6
  10. 19 10月, 2020 1 次提交
  11. 15 10月, 2020 1 次提交
  12. 14 10月, 2020 1 次提交
    • C
      Remove and reorganize the alias of APIs (#27717) · d05058d2
      chentianyu03 提交于
      * modify cond while_loop to paddle.static.nn.cond
      
      * modify crop_tensor to paddle.crop
      
      * modify Variable to paddle.static.Variable
      
      * remove nn.beam_search, nn.beam_search_decode, nn.gather_tree
      
      * remove bpr_loss, center_loss, rank_loss, smooth_l1, teacher_student_sigmoid_loss, edit_distance, sampled_softmax_with_cross_entropy in nn.functional
      
      * remove apis in nn.functional.learn_rate.py
      
      * remove pool2d, pool3d, adaptive_pool2d, adaptive_pool3d in nn.functional
      
      * remove apis in nn.functional.vision
      
      * remove erf, soft_relu in nn.functional.activation
      
      * remove apis in nn.functional.extension
      
      * remove nn.functional.rnn
      
      * remove hash from nn.functional.lod
      
      * remove row_conv from nn.functional.extension
      
      * remove one_hot, pad2d, pad_constant_like from nn.functional.common
      
      * remove nn.gather_tree, nn.BilinearTensorProduct, nn.Pool2D, nn.Pad2D
      
      * remove apis from optimizer.__init
      
      * remove tensor.creation.fill_constant
      
      * remove elementwise_mul in nn.functional.common and  modify to paddle.multiply
      
      * remove  tensor.stat.reduce_mean
      
      * remove reduce_all, reduce_any in tensor.logic
      
      * remove apis in tensor.math
      
      * remove apis in tensor.__init__
      
      * remove has_inf, has_nan in tensor.search
      
      * remove apis in framework.__init__
      
      * remove apis in paddle.__init__
      
      * remove apis in nn.functional.__init__
      
      * modify removed alias apis to raw api in doc and unittests
      
      * fix remove grid_sample bug
      
      * modify removed alias apis to raw api in doc and unittests
      
      * modify removed alias apis to raw api in doc and unittests
      
      * modify removed alias apis to raw api in doc and unittests
      
      * modify removed alias apis to raw api in doc and unittests
      
      * modify removed alias apis to raw api in doc and unittests
      
      * modify removed alias apis to raw api in doc and unittests
      
      * delete alias api relastions in doc
      
      * reserve paddle.compat, paddle.sysconfig
      
      * remove unittest for paddle.reduce_all, paddle.reduce_any
      
      * modify removed alias apis to raw api in doc and unittests
      
      * recover paddle.save and paddle.load
      
      * resolve conflicts
      
      * fix sample code missing paddle.enable_static() bug
      
      * fix sample code missing paddle.enable_static() bug
      
      * fix to_string sample code error
      d05058d2
  13. 12 10月, 2020 2 次提交
  14. 30 9月, 2020 1 次提交
    • L
      Remove Input requirement in dygraph for Model (#27557) · d15cbe70
      LiuChiachi 提交于
      * remove input requirment in dygraph Model
      
      * correct unittest
      
      * upadte save inference model in dygraph without input
      
      * fix unittets for test_model.py
      
      * solve conflicts
      
      * solve conflicts
      
      * delete http.log
      
      * fix test_model.py bug, correct initialization of MyModel
      
      * fix unittests bugs
      
      * set paddle manual seed for unittest
      
      * fix Model bugs, because inputs can be list or dict when it is provided.
      
      * add random seed for test_export_deploy_model
      
      * delete redundant codes, because  calls
      
      * Code optimization, error information optimization
      d15cbe70
  15. 25 9月, 2020 1 次提交
  16. 24 9月, 2020 1 次提交
  17. 17 9月, 2020 1 次提交
    • L
      Update hapi.model._save_inference_model by using new features of dy2stat in 2.0-beta API (#27272) · 69279207
      LiuChiachi 提交于
      * update model.save_inference_model
      
      * update doc for _save_inference_model, delete useless class in unittests
      
      * make users not be able to set model._inputs be None
      
      * update usage of Model class in unittests
      
      * fix bugs of _verify_spec
      
      * fix bugs of _verify_spec
      
      * add unittest to increase coverage rate
      
      * delete http.log
      
      * update doc for save, remove requirments and limitations for using
      
      * update doc for class Model
      69279207
  18. 08 9月, 2020 1 次提交
  19. 04 9月, 2020 1 次提交
  20. 03 9月, 2020 1 次提交
  21. 02 9月, 2020 1 次提交
    • L
      Correct 2.0 API usage in hapi.model.load (#26829) · 9ee4e3dc
      LiuChiachi 提交于
      * replace fluid.optimizer.set_dict with optimizer.set_state_dict
      
      * replace fluid.optimizer.set_dict with optimizer.set_state_dict
      
      * add coverage rate
      
      * Increase coverage rate, fix code style
      
      * Increase coverage rate, fix code style
      
      * add fit to generate optimizer.state_dict() to save .pdopt to increase coverage rate
      
      * delete http.log
      9ee4e3dc
  22. 31 8月, 2020 1 次提交
    • Q
      Move hapi to python/paddle root dir. (#26442) · f7fb4c22
      qingqing01 提交于
      * Move hapi form paddle/incubate to paddle
      
      * Remove vision/datasets/utils.py and clean code
      
      * Add sample code for conll05
      
      * Print pull path when saving model
      
      * Fix sample code after paramter_list of SGD is changed to parameters
      
      * Fix bug in wmt16 datase
      f7fb4c22
  23. 28 8月, 2020 2 次提交
    • L
      Refine paddle.manual_seed (#26496) · 844583c8
      Leo Chen 提交于
      * refine manual seed
      
      * fix ci problem
      
      * fix unittests
      
      * fix unittest
      
      * set is_init_py=false in manual_seed
      
      * fix unittest
      
      * fix bernoulli_op
      
      * fix(unittest): change random_seed to manual_seed
      
      * 🐞fix(unittest): fix manual_seed
      
      * trigger ci
      
      * fix test_sentiment
      
      * fix test_imperative_save_load
      
      * fix test_uniform_random_op
      
      * fix test_uniform_random_op
      
      * fix test_jit_save_load
      
      * merge develop
      
      * fix manual_seed
      
      * fix manual_seed
      
      * use global engine
      
      * use shared_ptr
      
      * fix double free
      
      * fix bug
      
      * fix bug
      
      * fix bug
      
      * fix test bug
      
      * fix test bug
      
      * fix test bug
      
      * fix ci
      844583c8
    • D
  24. 25 8月, 2020 1 次提交
    • 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
  25. 24 8月, 2020 1 次提交
  26. 23 8月, 2020 1 次提交
  27. 20 8月, 2020 1 次提交
  28. 16 8月, 2020 1 次提交
  29. 30 7月, 2020 1 次提交
  30. 24 7月, 2020 1 次提交
    • Q
      Refine Model of high level API (#25559) · b5f8784c
      qingqing01 提交于
      * Refine Model
      
      1. Take the network (instance of Layer) as the input of Model.
      2. Refine set_dict/load_dict of Layer.
      3. Refine Input interface, so update code sample about Input
      b5f8784c
  31. 18 6月, 2020 1 次提交
  32. 11 5月, 2020 1 次提交
    • Q
      Add a high-level API with traning and inference into Paddle. (#24293) · 43625bda
      qingqing01 提交于
      * Merge hapi into Paddle
      
      Hapi is a high level API for training and inference.
      The main modules include Model, Loss, Metrics, Dataset.
      Also includes common modules and models in NLP and computer vision, such as BERT, ResNet.
      
      These modules are developed by:
      0YuanZhang0, guoshengCS heavengate, LielinJiang, qingqing01, xyzhou-puck huangjun12, wangxiao1021, zhangyang.
      43625bda