1. 23 5月, 2023 1 次提交
    • F
      [CINN] Enable check_cinn on some tests (#53710) · 97fe79a9
      Fisher 提交于
      * Enable check_cinn on some tests
      
      Tests: bitwise, compare, shape, assign_value, sum, expand_v2,
      lookup_table, lookup_table_v2
      
      * Enable more CINN tests
      
      Tests with CINN: expand_v2, matmul, matmul_v2, mul, norm, one_hot_v2
      Add target select in cinn_launch_op
      
      * Revert test_mul_op
      
      * Improve op unit tests
      97fe79a9
  2. 11 4月, 2023 1 次提交
  3. 29 3月, 2023 1 次提交
  4. 25 3月, 2023 1 次提交
  5. 21 3月, 2023 1 次提交
  6. 20 3月, 2023 1 次提交
    • G
      Fluid clean move out fill constant (#49511) · c985b1ac
      GGBond8488 提交于
      * migrate fill_constant to paddle.tensor
      
      * move fill_constant to paddle.tensor and repalce the reference
      
      * add missing fill_constant replacement
      
      * fix typro
      
      * remove unused import fill_constant
      
      * fix zeros import error
      
      * fix circle import
      
      * fix layers.zeros
      
      * fix unitest
      
      * fix unitests
      
      * fix unitest
      
      * use paddle.full replace fill_constant in samplecode
      
      * fix sample code
      
      * recovery xpu test
      
      * recovery xpu test
      
      * fix circle import
      
      * fix utils import error
      
      * fix utils error
      
      * fix circle import
      
      * redo
      
      * fix circle import
      
      * fix prim fill constant import
      
      * fix type error
      
      * fix increase error
      
      * fix test error
      
      * fix fill_constant
      c985b1ac
  7. 13 3月, 2023 1 次提交
    • X
      Add expand composite rule (#50810) · 559de39a
      xysheng-baidu 提交于
      * Add expand composite rule
      
      * reshape x when dim_in less than dim_out
      
      * add tile op for expand
      
      * remove rensor shape case when comp prim
      
      * enable cinn case
      
      * dim_out can't be 0
      
      * update test case for prim type
      559de39a
  8. 10 3月, 2023 1 次提交
  9. 09 3月, 2023 1 次提交
    • C
      Norm prim test for some ops (#51329) · ce482b60
      Charles-hit 提交于
      * support elementwise_pow bfloat16
      
      * add only_check_prim parameters in check_grad
      
      * modify unit test
      
      * fix floor test
      
      * fix sigmoid bfloat16 test
      
      * norm some ops prim test
      
      * add unit16 for sqrt
      ce482b60
  10. 02 3月, 2023 1 次提交
  11. 21 2月, 2023 1 次提交
    • C
      [OpTest] support prim test in OpTest (#50509) · 457defe7
      Charles-hit 提交于
      * support prim test in OpTest
      
      * fix cmake
      
      * fix op test
      
      * fix test_input_spec
      
      * disable cinn in reduce_sum unit test
      
      * add bfloat16 dtype for sum
      
      * polish code
      
      * add clear jit program function
      
      * convert grad out from tensor to numpy
      
      * remove unnecessary code
      
      * add only_prim flag
      
      * fix flag
      
      * fix op test
      
      * fix optest comp inplace error
      
      * fix op test
      
      * fix op test with guard
      
      * add initialization of check_comp flag
      
      * fix comp inplace error in op test
      
      * rename check_comp with check_prim and add bfloat16 dtype convert
      
      * rename comp_op_type to prim_op_type
      
      * rename comp to prim
      
      * remove useless code
      
      * skip ci check for only prim
      
      * add no_grad_vars and grad_outputs in prim test
      
      * fix var_dict
      
      * fix op test for only_prim
      
      * fix dy2static bugs
      
      * polish some code
      457defe7
  12. 31 1月, 2023 1 次提交
  13. 20 1月, 2023 1 次提交
    • G
      Fluid clean remove io data (#49301) · 5670644c
      GGBond8488 提交于
      * replace paddle.fluid.layers.data and remove io.data
      
      * partial commit
      
      * partial commit
      
      * partial commit
      
      * partial commit
      
      * partial commit
      
      * partial commit
      
      * remove data in fluid.layers.io.__all__
      
      * fix errors
      
      * fix unitests
      
      * fix unitest
      
      * fix unitests
      
      * fix unitest
      
      * fix unitest
      
      * fix unitests
      
      * fix unitest
      
      * fix test_layers unitests
      
      * fix typro
      
      * fix unitest
      
      * fix unitest
      
      * fix unitest
      
      * fix typro
      
      * fix unitest test_model_cast_to_bf16
      
      * fix test_reducescatter
      
      * fix collective unitest
      
      * fix collective unitests
      
      * fix collective unitests
      
      * add coverage
      
      * fix add layers.data
      
      * re run ci
      
      * fix some typro
      
      * fix samplecode error
      
      * fix samplecode error
      5670644c
  14. 11 1月, 2023 1 次提交
  15. 13 12月, 2022 1 次提交
  16. 29 11月, 2022 1 次提交
  17. 23 10月, 2022 1 次提交
  18. 11 10月, 2022 1 次提交
  19. 27 9月, 2022 1 次提交
  20. 13 9月, 2022 1 次提交
  21. 10 8月, 2022 1 次提交
    • N
      [CodeStyle] use np.testing.assert_array_equal instead of... · 93c5c887
      Nyakku Shigure 提交于
      [CodeStyle] use np.testing.assert_array_equal instead of self.assertTrue(np.array_equal(...)) (#44947)
      
      * automatically fix
      
      * update comments
      
      * numpy -> np
      
      * self.assertEqual(..., True)
      
      * wrong usage (err_msg=True)
      
      这不是修复导致的错误,这些是原来 `self.assertTrue(..., True)`
      的错误用法,因此在修复后将其认为位置参数 `err_msg`
      
      * some missing fix
      93c5c887
  22. 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
  23. 21 4月, 2022 1 次提交
  24. 19 4月, 2022 1 次提交
  25. 13 4月, 2022 1 次提交
  26. 07 4月, 2022 1 次提交
    • H
      Add dist norm yamls (#41424) · 50ddc0b2
      hong 提交于
      * add dist erfinv gumbel softmax
      
      * fix test gumbel softmax op bug
      
      * try to fix gumbel softmax error
      
      * add label smooth backlist
      50ddc0b2
  27. 03 3月, 2022 1 次提交
    • H
      Move bn to pten (#39347) · ebd0f512
      hong 提交于
      * add bn cpu version; test=develop
      
      * move batch norm to pten
      
      * move batch norm to pten; test=develop
      
      * fix bug; test=develop
      
      * fix func::tranpose depend bug; test=develop
      
      * fix compile bugs; test=develop
      
      * fix use_op batch_norm bug; test=develop
      
      * fix cudnn bn add relu test; test=develop
      
      * fix pten context build and double grad bug; test= develop
      
      * remve useless code; test=develop
      
      * add batch norm gpu fp16 support; test=develop
      
      * fix test bn op bug; test=develop
      
      * remove output dtype set; test=develop
      
      * fix bug; test=develop
      
      * fix bug; test=develop
      
      * fix applay pass to program bug; test=develop
      
      * revert to develop; test=develop
      
      * fix rocm bug; test=develop
      
      * revert operator to develop; test=develop
      
      * fix pre_commit; test=develop
      
      * fix statci check error; test=develop
      
      * resolve conflict; test=develop
      
      * ana batch norm bug;
      
      * revert batch norm op
      
      * resolve conlict
      
      * fix nan inf and speed bug; test=develop
      
      * fix bug; test=develop
      
      * fix error; test=develop
      
      * test expand op; test=develop
      
      * fix bug; test=develop
      
      * resolve confilct
      
      * resolve confilct; test=develop
      
      * polish code; test=develop
      
      * polish code; test=develop
      
      * change mutable data to ctx alloc; test=develop
      
      * make format same with ci; test=develop
      
      * fix format error with ci; test=develop
      ebd0f512
  28. 18 8月, 2020 1 次提交
  29. 16 8月, 2020 1 次提交
  30. 06 1月, 2020 1 次提交
    • Z
      all cases use large shape (#22065) · 85ba5275
      zhupengyang 提交于
      affine_channel, affine_grid, bilinear_interp, bilinear_tensor_product,
      clip, crop, crop_tensor, cumsum, data_norm, expand, expand_as
      85ba5275
  31. 18 12月, 2019 1 次提交
  32. 12 12月, 2019 1 次提交
  33. 04 12月, 2019 1 次提交
  34. 13 10月, 2019 1 次提交
    • L
      fill_constant support Tensor; (#20521) · fc6ec3b9
      liym27 提交于
      2. fix bug in backward.py: using fill_constant instead of fill_constant_batch_size_like
      3. fix bug in ExpandGradOp.
      
      test=develop
      fc6ec3b9
  35. 10 10月, 2019 1 次提交
    • W
      fix expand bug (#20340) · 1288ac29
      wangchaochaohu 提交于
      * fix expand bug test=develop
      
      * fix style test=develop
      
      * fix style test=develop
      
      * fix style test=develop
      
      * fix style test=develop
      1288ac29
  36. 17 9月, 2019 1 次提交
    • L
      fix expand op: (#19302) · e9e3c087
      liym27 提交于
      1. add tensor support for argument expand_times in expand op;
      2. add support parameter inference when argument expand_times is a list containing integer and tensor variable;
      
      improve expand op according to reviews:
      1. add doc of ExpandTimes in expand_op.cc;
      2. improve the test of test_api.
      
      add stop_gradient=True when attr(expand_times) is tensor Variable, change code examples.
      test=develop,test=document_preview
      e9e3c087
  37. 04 6月, 2019 1 次提交
    • H
      expand op supprt tensor attribute (#17773) · dfec6762
      Hongyu Liu 提交于
      * expand support tensor attribute; test=develop
      
      * fix bug ; test=develop
      
      * fix uni test bug; test=develop
      
      * fix copy bug; test=develop
      
      * refine expand_times default value; test=develop
      dfec6762
  38. 14 2月, 2019 1 次提交
  39. 13 2月, 2019 1 次提交
  40. 15 8月, 2018 1 次提交