1. 08 12月, 2022 1 次提交
    • G
      Clean fluid APIs in distributed and fleet files (#48851) · 911d6bb1
      Ghost Screaming 提交于
      * Fix bug of reduce_sum op. When input.numel() > INT32_MAX, its result
      is wrong.
      
      * Remove climits.
      
      * Clean fluid API in paddle/distributed and paddle/fleetx folders.
      Include following files:
      python/paddle/distributed/__init__.py
      python/paddle/distributed/collective.py
      python/paddle/distributed/fleet/utils/fs.py
      python/paddle/distributed/fleet/utils/hybrid_parallel_inference.py
      python/paddle/distributed/fleet/utils/hybrid_parallel_util.py
      python/paddle/distributed/fleet/utils/internal_storage.py
      python/paddle/distributed/launch/context/device.py
      python/paddle/distributed/parallel.py
      python/paddle/distributed/parallel_with_gloo.py
      python/paddle/distributed/spawn.py
      python/paddle/framework/__init__.py
      To be mentioned, 'paddle.fluid.dygraph.parallel.ParallelEnv'
       and 'fluid.framework.core' keeps unchanged in those files.
      ParallelEnv is used by paddle.fluid.dygraph.parallel.DataParallel.
      However, APIs in paddle.fluid.dygraph.parallel can't be
      migrated to paddle.distributed, as there exists cyclic import
      dependencies in modules like paddle.static, paddle.tensor. And
      'fluid.framework.core' will be changed to import framework.core
      after fluid.core is transmitted.
      
      * Change TODO authors.
      911d6bb1
  2. 29 11月, 2022 1 次提交
  3. 14 11月, 2022 1 次提交
  4. 08 11月, 2022 1 次提交
  5. 01 11月, 2022 1 次提交
    • N
      [CodeStyle][E711] use `is`/`is not` for comparison with `None` (#47452) · a35a4a53
      Nyakku Shigure 提交于
      * [CodeStyle][E711] use `is`/`is not` for comparison with `None`
      
      * `self.assertTrue($A is None)` -> `self.assertIsNone($A)`
      
      * `self.assertTrue($A is not None)` -> `self.assertIsNotNone($A)`
      
      * `self.assertFalse($A is None)` -> `self.assertIsNotNone($A)`
      
      * `self.assertEqual($A, None)` -> `self.assertIsNone($A)`
      
      * `self.assertNotEqual($A, None)` -> `self.assertIsNotNone($A)`
      a35a4a53
  6. 24 10月, 2022 1 次提交
  7. 23 10月, 2022 1 次提交
  8. 19 10月, 2022 1 次提交
  9. 12 10月, 2022 1 次提交
    • N
      [CodeStyle][F401] remove unused imports in python/paddle/distributed (#46758) · fe716a0b
      Nyakku Shigure 提交于
      * [CodeStyle][F401] remove unused import in python/paddle/distributed
      
      * remove pass
      
      * empty commit
      
      * Fix ValueError: list.remove(x): x not in list for meta_optimizer_names.
      
      Fix ValueError: list.remove(x): x not in list for meta_optimizer_names.
      
      * Fix split import.
      
      Fix split import.
      
      * add noqa after meta_optimizers in factory
      
      * restort collective ops
      
      * expand `import *`
      
      * add noqa after required imports
      
      * try to fix APIs without core.ops
      
      * Revert "try to fix APIs without core.ops"
      
      This reverts commit 6172beaf601e84bf61f2490c12c4739f0edaa5eb.
      
      * fix an increment
      
      * empty commit
      
      * add noqa after required imports
      
      * expand `import *`, fix ci error
      Co-authored-by: NShuangchi He <34329208+Yulv-git@users.noreply.github.com>
      fe716a0b
  10. 14 9月, 2022 1 次提交
  11. 09 8月, 2022 1 次提交
    • Z
      refine save/load interface for distributed cpups (#44862) · 7b29c89b
      zhaocaibei123 提交于
      * save load
      
      * save load
      
      * add unittest
      
      * first commit
      
      * second commit
      
      * third commit
      
      * remove SaveLocalFS in memory sparse table
      
      * save dense param
      
      * update
      
      * push slot
      
      * fix push show clk: int -> float
      
      * add unittest
      
      * fix sample
      
      * unittest
      
      * add AsExtra for op
      
      * unittest
      
      * modify fs.py
      
      * modify fs.py
      
      * fix some bugs
      
      * add dataset hdfs config
      
      * local change
      
      * dataset use differenct hadoop ugi/fs_name
      
      * add
      
      * fix conflict
      
      * fix
      
      * remove logs
      
      * code style
      
      * fix
      
      * code style
      
      * code style
      
      * fix
      
      * code style
      
      * save_dense_param
      
      * fix
      
      * fix
      
      * fix
      
      * fix
      
      * change momentum in dense optimzer
      
      * fix
      
      * fix
      
      * change fluid => paddle.static
      
      * remove some unuseful code
      Co-authored-by: Nesythan <esythan@126.com>
      7b29c89b
  12. 16 6月, 2022 1 次提交
  13. 05 6月, 2022 1 次提交
    • S
      【code format check upgrade】 step2:yapf (#42944) · a072fca8
      Sing_chan 提交于
      * use yapf to format all python file
      
      * yapf exclude two unittests file for they rely on writing and reading file, and format will break them
      
      * disable diff_py_file because too many diff files cause command following failed
      a072fca8
  14. 15 4月, 2022 1 次提交
  15. 21 10月, 2021 1 次提交
  16. 11 10月, 2021 1 次提交
  17. 08 10月, 2021 1 次提交
  18. 05 7月, 2021 1 次提交
  19. 07 6月, 2021 1 次提交
  20. 06 5月, 2021 1 次提交
  21. 02 3月, 2021 1 次提交
  22. 30 11月, 2020 1 次提交
  23. 28 9月, 2020 1 次提交
  24. 24 9月, 2020 1 次提交
  25. 17 9月, 2020 1 次提交
  26. 16 9月, 2020 1 次提交
  27. 13 8月, 2020 1 次提交
  28. 10 8月, 2020 1 次提交
  29. 07 8月, 2020 1 次提交
  30. 07 7月, 2020 1 次提交
  31. 23 2月, 2020 1 次提交
  32. 05 2月, 2020 1 次提交
  33. 15 11月, 2019 1 次提交
  34. 31 10月, 2019 1 次提交
  35. 24 9月, 2019 1 次提交
    • X
      support change shuffle and train thread num (#19841) · cedc0477
      xujiaqi01 提交于
      * support change shuffle thread num
      * support change train thread num
      * fix receive shuffle data of each channel
      * data norm stop gradient
      * add check thread_tensor type and root_tensor type when merge metric
      * remove sleep in shuffle, add config
      * add config of pslib client to client communication
      * fix xbox str
      * add data norm op testcase
      * add flush in trainer finalize
      cedc0477
  36. 17 9月, 2019 1 次提交
  37. 08 8月, 2019 1 次提交
  38. 22 7月, 2019 1 次提交
  39. 12 6月, 2019 1 次提交
  40. 20 12月, 2018 1 次提交
    • T
      lookup table utils fix (#14730) · 45dd3491
      tangwei12 提交于
      * fix utils config, test=develop
      
      * reweite tools in lookup table utils, test=develop
      
      * merge develop, test=develop
      
      * add copy in setup, test=develop
      
      * update api spec, test=develop
      
      * add doc, test=develop
      
      * prettifying doc, test=develop
      
      * Update API.spec
      
      update api.spec, test=develop
      
      * Update lookup_table_utils.py
      
      test=develop
      
      * Update lookup_table_utils.py
      
      test=develop
      
      * merge develop, test=develop
      
      * merge develop, test=develop
      
      * init fix, test=develop
      
      * fix in downloads, test=develop
      
      * fix in setup.in, test=develop
      45dd3491