1. 22 6月, 2022 2 次提交
    • Z
      set_state_dict not use state_dict hook (#43407) (#43711) · 0fb66355
      zhangbo9674 提交于
      在 amp-o2功能开发过程中,为了支持指定网络存储数据类型的功能,添加state_dict hook功能,但是在Layer的set_state_dict是通过state_dict获取网络参数并加载的,hook接口的存在导致 set_state_dict无法加载到原本网络参数。
      本pr通过增加hook控制开关,在set_state_dict中禁用hook解决该问题。
      
      详见pr43407
      0fb66355
    • Z
      [FIx bug]layer to 'NoneType' object has no attribute 'place' (#43597) (#43717) · 0b879318
      zhangbo9674 提交于
      bug:
      当class Layer的_buffers中有参数为None的时候,调用to()方法将会报layer to 'NoneType' object has no attribute 'place'的错误。
      修复方法:
      to()方法增加对_buffers中None类型参数的判断,如果为None,跳过该参数的处理。
      0b879318
  2. 16 6月, 2022 1 次提交
    • Q
      [Cherry-pick] Fix numpy 1.20+ deprecation warnings (#43513) · 689e0999
      Qi Li 提交于
      * Fix numpy 1.20+ deprecation warnings (#42929)
      
      * Replace np.bool/np.bool8 with np.bool_
      
      * Replace np.object with np.object_
      
      * Replace np.complex with np.complex128
      
      * Replace np.float with np.float64
      
      * Replace np.int with np.int_
      
      * Rerun pre-commit for newer pre-commit configuration
      
      * Use builtin bool instead of np.bool_ based on the context
      
      * fix mode dtype
      Co-authored-by: Nzlsh80826 <rewang@nvidia.com>
      689e0999
  3. 07 6月, 2022 1 次提交
  4. 10 5月, 2022 1 次提交
  5. 30 4月, 2022 1 次提交
  6. 27 4月, 2022 1 次提交
  7. 26 4月, 2022 1 次提交
  8. 24 4月, 2022 1 次提交
  9. 22 4月, 2022 1 次提交
  10. 21 4月, 2022 1 次提交
  11. 20 4月, 2022 1 次提交
  12. 18 4月, 2022 1 次提交
  13. 15 4月, 2022 1 次提交
  14. 14 4月, 2022 1 次提交
    • C
      Cherry pick final state ops (#41755) · 921a6fb7
      chentianyu03 提交于
      * [Yaml]add exp yaml (#41217)
      
      * add exp yaml
      
      * add exp api in test case
      
      * add determinant yaml
      
      * fix exp op unittest
      
      * change test class name
      
      * modify api name
      
      * compacted with raw api
      
      * fix det api
      
      * add python_api
      
      * add test eager for determinant op
      
      * [Yaml] Add assign yaml (#41428)
      
      * add assign yaml
      
      * add assign api
      
      * add assign backward api
      
      * add assign
      
      * add assign yaml
      
      * add assign
      
      * assign yaml
      
      * add assign raw kernel and use assign_raw in yaml
      
      * merge develop branch
      
      * add missing python_api
      
      * exchange assign and assign_raw kernel name (#41625)
      
      * exchange assign and assign_raw kernel name
      
      * fix register error
      
      * [Yaml]add gaussian_random yaml and test case (#41312)
      
      * add guassian random yaml
      
      * add gaussian_random yaml and test case
      
      * fix error modify of full yaml
      
      * import in_dygraph_mode
      
      * import _in_legacy_dygraph
      
      * add place arg in api
      
      * import __current_expected_place
      
      * fix test_egr_python_api failed case
      
      * add test case
      
      * add cast for NormalInitializer
      
      * fix test error
      
      * fix test error
      
      * rm unsed check code
      
      * fix test error in test_initializer_nn
      
      * modify by review
      
      * [Phi]fix split error when sections has 0 size and add test case (#41708)
      
      * fix split error when sections has 0 size and add test case
      
      * fix test case
      921a6fb7
  15. 12 4月, 2022 1 次提交
    • Y
      [Cherry-Pick]Add... · a0b0a32f
      YuanRisheng 提交于
      [Cherry-Pick]Add hard_swish/kron/linspace/logit/graph_send_recv/multi_dot/maxout/multiplex op yaml file  (#41566)
      
      * [Phi]Add graph_send_recv yaml file (#41206)
      
      * add graph_send_recv yaml
      
      * deal with confict
      
      * fix compile bugs
      
      * cherry-pick pr 41298
      
      * cherry-pick pr41550
      
      * fix compile bugs
      a0b0a32f
  16. 11 4月, 2022 2 次提交
  17. 08 4月, 2022 1 次提交
    • 0
      [Cherry-Pick]Cherry pick PR41200, PR41474, PR41382 (#41509) · ae34db36
      0x45f 提交于
      * Use `self`as a parameter of _hash_with_id function to avoid error caused by hash_id reuse (#41200)
      
      * Add fill_constant_batch_size YAML and UT (#41474)
      
      * Switch some dy2st UT to eager mode (#41382)
      
      * Sitch some dy2st UT to eager mode
      
      * Fix test_lstm and remove test_transformer
      
      * Run test_resnet_v2 in old dy mode
      ae34db36
  18. 07 4月, 2022 1 次提交
  19. 06 4月, 2022 2 次提交
    • W
      [Eager] Support test_layers's test cases switch to eager mode (#41216) · 5ae8babb
      Weilong Wu 提交于
      * [Eager] Support test_layers's test cases switch to eager mode
      
      * Update batch_norm _C_ops action to fix CI
      
      * Use None instead of new EmptyTensor
      
      * Updated var name
      
      * Make sure to switch eager mode, Fix Coverage_CI
      
      * Remove _non_static_mode statement
      
      * Remove batch_norm dispensable input statement
      
      * Polish batch_norm code
      
      * Fix CI issue
      5ae8babb
    • H
      Add conv yaml (#41354) · 7ed7c6c7
      hong 提交于
      * update
      
      * add conv yaml
      
      * add backward
      
      * remove useless code
      
      * fix bug
      
      * fix bug
      
      * revert fluid dygraph conv2d
      
      * remove useless infermeta function
      
      * fix meta fn deluplicat error
      
      * conv using custom impl
      
      * remove amp include
      
      * fix bug
      
      * use cudnn = true
      
      * fix test mkldnn caching bug
      7ed7c6c7
  20. 05 4月, 2022 1 次提交
  21. 04 4月, 2022 4 次提交
  22. 02 4月, 2022 1 次提交
  23. 01 4月, 2022 3 次提交
  24. 30 3月, 2022 3 次提交
  25. 28 3月, 2022 4 次提交
  26. 25 3月, 2022 2 次提交