1. 12 7月, 2021 1 次提交
    • W
      [Cherry-pick]Delete the function of saving layer object. (#34039) · 999c2917
      WeiXin 提交于
      * Save all the information of 'ParamBase' in 'Layer'. (#33500)
      
      * Save all the information of 'ParamBase' in 'Layer'.
      
      * edit unittest
      
      * delete the function of saving layer object. (#33697)
      
      * delete the function of saving layer object.
      
      * edit doc of paddle.save/load and polish error message
      999c2917
  2. 01 6月, 2021 1 次提交
    • W
      [Cherry-Pick]Set the default value of protocol to 4. (#32904) #33009 · 6fb64606
      WeiXin 提交于
      
      
          paddle.save paddle.static.save protocol的默认值改为4(原默认值为2)。
      
          pickle protocol=4相交于protocol=2:
              protocol=4时保存/加载大于4G的单个numpy.ndarray 等。
              protocol=4时保存/加载的速度有明显提升。
              Python2 不支持protocol=4(paddle2.1主要支持Python3,不再考虑Python2)。
      
          兼容问题:pickle版本(protocol)会写到文件里面,pickle load的时候会自动识别到protocol,paddle2.1(paddle.save pickle默认版本为2)可以加载paddle2.1.1的模型(paddle.save pickle默认版本为4)。
      
      原始PR:#32904
      6fb64606
  3. 18 5月, 2021 1 次提交
  4. 29 4月, 2021 2 次提交
  5. 27 4月, 2021 1 次提交
  6. 25 4月, 2021 1 次提交
    • W
      paddle.save/load support nested structure and layer (#32446) · 727b28d7
      WeiXin 提交于
      * support save/load binary format tensor
      
      * Fix error when create cudaplace
      
      * Fix error when create cudaplace
      
      * Fix error when create cudaplace
      
      * get devive context from pool.
      
      * move define of 'SerializeToStream' and 'DeserializeFromStream' to 'lod_tensor.cc' and 'selected_rows.cc'.
      
      * support complex object
      
      * improve coverage.
      
      * improve coverage
      
      * improve coverage.
      
      * fix a bug.
      
      * polish API
      
      * save/load program
      
      * paddle.save/load: layer
      
      * deal with conflict
      
      * if PY2, block test_paddle_save_load.TestSaveLoadLayer
      
      * polish code.
      
      * polish code
      
      * edit unnittest
      
      * The condition for object to be identified as state_dict becomes strict
      
      * use 'core._cuda_synchronize'
      727b28d7
  7. 22 4月, 2021 1 次提交
    • W
      support save/load binary format tensor. (#32211) · f4d9adc7
      WeiXin 提交于
      * support save/load binary format tensor
      
      * Fix error when create cudaplace
      
      * Fix error when create cudaplace
      
      * Fix error when create cudaplace
      
      * get devive context from pool.
      
      * move define of 'SerializeToStream' and 'DeserializeFromStream' to 'lod_tensor.cc' and 'selected_rows.cc'.
      
      * improve coverage.
      
      * improve coverage.
      
      * polish API
      
      * deal with conflict
      
      * disable save/load large file in unnittest
      
      * split unnittest.
      f4d9adc7
  8. 20 4月, 2021 1 次提交
  9. 02 4月, 2021 1 次提交
    • W
      support save/load single tensor (#31756) · 43367e4b
      WeiXin 提交于
      * support save/load single tensor
      
      * compatibility modification according to unnittest
      
      * Some python2.7 don't have 'copyreg' modules
      
      * Handle a syntax error.
      
      * Dealing with compatibility problems on Mac.
      
      * Dealing with compatibility problems on Mac.
      
      * edit unittest to improve coverage.
      
      * Modify the code according to the review comments
      
      * Reduce redundant code.
      
      * support for static graph loading dygraph state_dict
      
      * edit code according to CI
      
      * edit unittest
      
      * edit unnittest
      
      * delete redundant file
      
      * edit code according to Comments
      
      * edit english doc
      
      * edit english doc
      
      * edit English DOC.
      
      * get/set_tensor->get/set_value; return_numpy=False
      
      * get/set_tensor->get/set_value; return_numpy=False
      
      * edit unnittest
      
      * edit unnittest
      
      * polish code.
      43367e4b
  10. 23 2月, 2021 1 次提交
  11. 18 1月, 2021 1 次提交
    • W
      Avoid bug on 'MAC python3.5/6'. (#30485) · 18ecd433
      WeiXin 提交于
      * Avoid  bug on 'MAC python3.5/6'.
      
      * Choose the saving method according to the OS.
      
      * smaller length of '_unpack_saved_dict' for MAC OS.
      
      * add version information of Python.
      
      * Edit comment.
      18ecd433
  12. 05 1月, 2021 1 次提交
    • W
      Support storage of large parameters (#29988) · f43e1d8c
      WeiXin 提交于
      * Support storage of large parameters
      
      * Reduce the complexity of the unittest
      
      * Reduce the complexity of the unittest,commented out unittest for
      
      * add unittest for static.save/load
      
      * Increase the timeout threshold of 'test_static_save_load'
      
      * Increase the timeout threshold of 'test_static_save_load'
      
      * Increase the timeout threshold of 'test_static_save_load' and 'test_paddle_save_load'
      
      * Increase the timeout threshold of 'test_static_save_load' and 'test_paddle_save_load'
      f43e1d8c
  13. 16 11月, 2020 1 次提交
  14. 13 11月, 2020 1 次提交
  15. 13 10月, 2020 2 次提交
  16. 11 10月, 2020 1 次提交
  17. 23 9月, 2020 1 次提交
    • C
      Add new paddle.save/load APIs (#27331) · bb84f0e6
      Chen Weihang 提交于
      * init commit of new save/load
      
      * fix failed unittests
      
      * fix save_load_v2 unittest failed
      
      * fix failed unittest & polish doc
      
      * add tests for coverage
      
      * add more tests & move static apis
      
      * fix example code error
      
      * polish emample code
      
      * fix detail example code problem
      bb84f0e6