1. 12 1月, 2021 1 次提交
    • C
      [Cherry-pick] Complex grad for matmul, kron and type promotion (#30304) · 7346edc2
      chentianyu03 提交于
      * complex gradient matmul  (#29966)
      
      * dot op support complex types
      
      * matmul support complex types
      
      * add test case
      
      * matmul broadcast gradient support complex
      
      * move conjFunctor to complex_functor.h
      
      * change the kron gradient when complex types (#29995)
      
      * type promotion for grad (#30177)
      
      * type promotion for grad
      
      * add type promotion for div op
      7346edc2
  2. 29 12月, 2020 1 次提交
    • C
      [Cherry-pick] Complex network execute support (#29905) · 91ebc460
      Chen Weihang 提交于
      * [Complex] Add support for complex grad accumulated (#29889)
      
      * add support for complex grad accumulated
      
      * add unittest for coverage
      
      * update test dtype
      
      * remove useless blank line
      
      * [Complex] Handle complex to real after type promotion (#29855)
      
      * try to add fwd op input dtypes
      
      * refactor base impl
      
      * return tmp_ins after dygraph prepare data
      
      * fix typo found in debug
      
      * polish comment & add complex net test
      
      * revert detail change
      
      * fix unittest failed
      
      * add complex kernel condition control
      
      * fix xpu test failed & polish comment
      
      * polish details by review comments
      
      * Complex op test (#29753)
      
      * delete no need to calculate inputs in dygraph op_test
      
      * delete no need to calculate inputs in dygraph op_test
      
      * change grad elementwise_mul for complex types (#29757)
      
      * add conj op for complex types
      
      * add conj for complex types
      
      * add more test case
      
      * add conj_op test
      
      * modify conj api and impl
      
      * add complex type for fill_constant_op xpu
      
      * add setConstant for complex type
      
      * remove complex conj test file
      
      * user define grad for test_conj_op
      
      * add test case for static mode of conj api
      
      * modify conj doc
      
      * change input args name to x
      
      * remove useless codes
      
      * conj support real types
      
      * add conj test case for real number
      
      * delete no need to calculate inputs in dygraph op_test
      
      * delete no need to calculate inputs in dygraph op_test
      
      * modify grad of mul for complex types
      
      * fix the grads of inputs args order not match bug
      
      * change the grad of div when complex types (#29804)
      
      * change the grad of div when complex types
      
      * fix the grads of inputs args order not match bug
      Co-authored-by: Nchentianyu03 <chentianyu03@baidu.com>
      91ebc460
  3. 10 9月, 2020 1 次提交
  4. 24 8月, 2020 1 次提交
  5. 22 8月, 2020 1 次提交
  6. 03 8月, 2020 1 次提交
    • W
      remove all op with out args (#25570) · 12bed4a9
      WuHaobo 提交于
      * test=develop,test=document_fix, remove the out args
      
      * Revert "test=develop,test=document_fix, remove the out args"
      
      This reverts commit f430799b.
      
      * test=develop,test=document_fix, remove the out args
      
      * remove all  the out args
      
      * remove all  the out args
      
      * test=develop, remove all  the out args
      
      * test=develop, remove all  the out args
      
      * test=develop, remove out args in matmul testcase
      
      * test=develop, fix the bugs of out args testcase in logsumexp
      
      * test=develop, fix the bugs of out args testcase in elementwise_add
      
      * test=develop, fix the bugs of out args testcase in elementwise_div
      
      * test=develop, fix the bugs of out args testcase in activation
      
      * test=develop, fix the bugs of out args testcase in addcmul
      
      * test=develop, fix the bugs of out args
      
      * test=develop, fix the bugs of out args in API example
      
      * test=develop, fix the bugs of out args in kron testcase
      
      * test=develop, fix the bugs of out args in kron testcase
      
      * test=develop, remove out args
      
      * test=develop, remove out args
      
      * test=develop, fix the coverage
      
      * test=develop, polish codestyle
      
      * test=develop, Update math.py
      
      * test=develop, polish codestyle
      
      * test=develop, polish codestyle
      
      * test=develop, polish codestyle
      
      * test=develop, polish codestyle
      
      * test=develop, polish the test_activation_op.py
      
      * test=develop, Update math.py
      
      * test=develop, fix the failed CI
      
      * test=develop, add core.ops
      
      * test=develop, add core.ops change clamp to clip
      
      * test=develop, add core.ops change clamp to clip
      
      * test=develop, write testcase for clamp OP
      12bed4a9
  7. 09 6月, 2020 1 次提交
  8. 04 4月, 2020 1 次提交
  9. 03 3月, 2020 1 次提交
  10. 19 12月, 2019 1 次提交
  11. 09 12月, 2019 1 次提交
    • Z
      Fix unit tests to avoid check_grad checking failures (#21554) · 548efcd2
      Zhang Ting 提交于
      * fix python API tests that do not need to inherit OpTest, test=develop
      
      * fix fp16 cases that will only be enabled in GPU mode, test=develop
      
      * remove TestSoftmaxFP16Op from test cases of softmax_mkldnn_op, test=develop
      
      * fix tests so that the cases are only created in GPU mode, test=develop
      548efcd2
  12. 19 11月, 2019 1 次提交
  13. 20 10月, 2019 1 次提交
  14. 04 9月, 2019 1 次提交
  15. 26 12月, 2018 1 次提交
    • W
      Fp16 training (#14992) · 856f0da0
      Wu Yi 提交于
      * wip
      
      * wip
      
      * wip
      
      * wip for test
      
      * add fp16 tests test=develop
      
      * fix cpu build test=develop
      
      * fix test=develop
      
      * fix py3 tests test=develop
      
      * fix lr_scheduler dtype test=develop
      
      * fix test=dvelop
      
      * test fix ci compile test=develop
      
      * fix build and merge test=develop
      
      * fallback momentumop change to general test=develop
      
      * make fp16 lr schedule simple test=develop
      
      * fix ut test=develop
      
      * fix tests test=develop
      
      * remove fp16 learning rate cast test=develop
      856f0da0
  16. 20 12月, 2018 2 次提交
  17. 15 8月, 2018 1 次提交
  18. 26 7月, 2018 2 次提交
  19. 24 2月, 2018 1 次提交
  20. 13 2月, 2018 1 次提交
    • X
      Run Python OP tests in a single Python process to improve test time. (#8362) · cde6241a
      Xin Pan 提交于
      Currently, our tests run with 2 GPUs, the init time is absurdly long:
      about 4s for each process.  Currently, we run each OP test on
      different processes. This PR:
      
      1. create cmake function py_test_modules which will generate the
      Makefile that runs a list of Python unittest module in a single Python
      process.
      
      2. move all "python unittest compatible" (e.g., used the unittest
      package, not just a regular python file). from fluid/tests to
      fluid/tests/unittests.
      
      3. cmake now will run all OP tests in fluid/tests/unittests in a
      single process, except the time-consuming tests, they are separated
      into different processes to utilize parallelism. Please make sure to
      use the unittest package if you put the python test file in
      fluid/tests/unittests
      
      4. remove all exit(0) from fluid/tests/unittests/*.py, exit(0) is used
      to disable unittest, we can not do it when running all tests in a
      single process since it will terminate the process without running the
      other tests. Instead, the test is disabled in
      fluid/tests/unittests/CMakeLists.txt. FIXME is added for each disabled
      item. Please disable the unittest from
      fluid/tests/unittests/CMakeLists.txt, instead of adding exit(0) to the
      Python file, for all Python file in fluid/tests/unittests/.
      
      5. add an option WITH_FAST_BUNDLE_TEST. When OFF, will run the unit
      tests in separate process so that they can be tested individually.
      cde6241a
  21. 12 2月, 2018 1 次提交
  22. 17 1月, 2018 1 次提交
  23. 15 1月, 2018 1 次提交
    • D
      Feature/hooks (#7513) · b9b75377
      dzhwinter 提交于
      * add copyright hook
      
      * add copyright hook
      
      * refine copyright hook
      
      * "test copyright hook"
      
      * fix check style
      
      * fix ci
      b9b75377
  24. 14 11月, 2017 1 次提交
  25. 22 9月, 2017 1 次提交