1. 14 3月, 2023 2 次提交
  2. 10 3月, 2023 1 次提交
  3. 09 3月, 2023 2 次提交
    • Z
      Remove paddle.fluid.layers.utils.* (#51033) · 86e990d4
      zqw_1997 提交于
      * move fluid.utils to paddle.utils.layers_utils
      
      * fix error
      
      * delete original fluid layers utils
      
      * remove import and old utils
      
      * remove more old utils import
      
      * change import path of fill_constant in the layers_utils.py
      
      * fix mistake
      
      * fix error
      
      * expose in __init__.py
      
      * for comment
      
      * when change the ref of func is_sequence, it should change to the root of is_sequence instead
      
      * for codecheck
      86e990d4
    • A
      [Dy2St]Enhance @to_static auto-skip paddle inner API (#50596) · 4474e085
      Aurelius84 提交于
      * [Dy2St]Enhance @to_static auto-skip paddle inner API
      
      * fix comment
      
      * fix class method
      4474e085
  4. 08 3月, 2023 1 次提交
  5. 02 3月, 2023 1 次提交
  6. 23 2月, 2023 1 次提交
  7. 22 2月, 2023 1 次提交
    • J
      【Prim】Add gather vjp (#50305) · 4db8e5c7
      Jiabin Yang 提交于
      * tmp gather vjp
      
      * support gather
      
      * remove useless code
      
      * fix compiling error
      
      * fix ut
      
      * add eager test
      
      * add eager test
      
      * add seed
      
      * fix cpu error
      
      * fix transpose op compat
      
      * remove tensor index case
      
      * fix prim_cinn
      
      * fix ut
      4db8e5c7
  8. 21 2月, 2023 1 次提交
    • X
      【prim】Layer norm (#50422) · 2f4763ee
      xiaoguoguo626807 提交于
      * fix composite mean op map
      
      * fix composite check output
      
      * init layer_norm
      
      * init layer_norm
      
      * map output from composite rule to origin op
      
      * add dropout op map
      
      * add input map check
      
      * polish log
      
      * modify rules
      
      * success test_forward
      
      * modify test without cinn
      
      * modify cinn test
      
      * modify cinn test
      
      * except fp64
      
      * except fp64
      
      * delete flatten
      
      * delete unused change
      
      * review
      
      * pass cpu test
      
      * code style
      
      * delete flatten fp16 error
      
      * modify flatten test
      
      ---------
      Co-authored-by: Ncyber-pioneer <chenzhuo@tju.edu.cn>
      2f4763ee
  9. 20 2月, 2023 2 次提交
  10. 17 2月, 2023 1 次提交
  11. 16 2月, 2023 1 次提交
    • Z
      Add mean composite rule (#50298) · f7f67b72
      zqw_1997 提交于
      * beta
      
      * small commit
      
      * add batch_norm composite rule
      
      move composite test case
      
      remove unuseful var
      
      add composite op blacklist
      
      * small change v2
      
      * finish the test_composite_mean and test_composite_mean_grad
      
      * add ops assertion to the tests
      
      * add cinn test
      
      * fix the error and inappropriate usage in func: mean_composite
      
      * remove the ref of outer lib in primtives.py
      
      * modify sample code of reduce_sum
      
      * fix composite mean op map
      
      * modify testcases to test more float type
      
      * remove cpu float16 test
      
      * cinn test fix
      
      * remove reduce_max
      
      * change the name sum to sum_x
      
      * change the use of reduce_sum to sum
      
      ---------
      Co-authored-by: Ncyber-pioneer <chenzhuo@tju.edu.cn>
      f7f67b72
  12. 15 2月, 2023 1 次提交
  13. 14 2月, 2023 3 次提交
  14. 10 2月, 2023 1 次提交
  15. 06 2月, 2023 1 次提交
  16. 03 2月, 2023 1 次提交
  17. 01 2月, 2023 1 次提交
    • Z
      remove fluid.initializer.UniformInitializer, ConstantInitializer,... · 6edc7bba
      zqw_1997 提交于
      remove fluid.initializer.UniformInitializer, ConstantInitializer, NormalInitializer, TruncatedNormalInitializer, XavierInitializer, BilinearInitializer, MSRAInitializer, NumpyArrayInitializer and calculate_gain.. (#49498)
      
      * move UniformInitializer and ConstantInitializer
      
      * more modify
      
      * circular import resolved
      
      * another circular import resolved?
      
      * more circular import 2
      
      * circular import 3
      
      * change import paddle in metric.py
      
      * BuildStrategy import from fluid
      
      * modify the framework import path in common.py
      
      * change rnn.py import, from static to original framework
      
      * change import static in the nn folder
      
      * default_main_program should import from common_ops_import
      
      * add import paddle in param_attr.py
      
      * use core not paddle module for using VarDesc
      
      * another old uniform
      
      * mistake that use Uniform instead of UniformInitializer
      
      * modify UniformInitializer doc
      
      * move fluid.NormalInitializer to nn.initializer.NormalInitializer
      
      * remove import of Normal in fluid.layers.nn.py
      
      * remove more import of old Normal
      
      * remove more import of old Normal
      
      * sample code modify and tests modify import
      
      * is_listen_failed passing arg should be log file
      
      * problem solved
      
      * a mistake solved
      
      * comments resoleved and remove paddle.fluid.initializer.TruncatedNormalInitializer
      
      * remove paddle.fluid.initializer.XavierInitializer and paddle.fluid.initializer.MSRAInitializer
      
      * remove paddle.fluid.initializer.BilinearInitializer NumpyArrayInitializer and set_global_initializer
      
      * change fluid to static
      
      * change static to fluid to avoid circular import in distributed_strategy.py
      
      * fix example code and test_initializer
      
      * ValueType
      
      * sample code fix
      
      * change set_global_initializer back to fluid
      
      * put paddle.static.BuildStrategy.ReduceStrategy into the fuction to avoid circular import
      
      * remove calculate_gain, delete BilinearInitializer and revert set_global_initializer
      
      * change the time of using UniformInitializer, ConstantInitializer, NormalInitializer, TruncatedNormalInitializer, XavierInitializer, MSRAInitializer, NumpyArrayInitializer as few as possible
      
      * fix argument incampatible
      
      * fix more arg incompatible
      
      * fix test_prelu_op_xpu.py Constant
      
      * fix inaccurate doc
      
      * more doc fix: default value
      6edc7bba
  18. 20 1月, 2023 2 次提交
    • J
      【Prim】Refactor prim flags system (#49930) · 23d20e30
      Jiabin Yang 提交于
      23d20e30
    • 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
  19. 17 1月, 2023 3 次提交
  20. 13 1月, 2023 1 次提交
    • J
      【Prim】Support elementwise related VJP with primitives (#49784) · 561f9013
      Jiabin Yang 提交于
      * support elementwise base func
      
      * fix compiling error and add test
      
      * remove additional param
      
      * support vjp for div using comp
      
      * remove additional change
      
      * fix dy2st error with magic num
      
      * fix dy magic num
      
      * another magic
      
      * another magic
      
      * add more test
      
      * fix windows problem
      
      * another magic
      
      * fix windows compile
      
      * invoke ci
      
      * add skip rename strategy
      
      * support add vjp
      
      * fix test_tanh
      
      * support add with new axis cal
      
      * fix resnet and some test
      
      * add composite log
      
      * support sub vjp
      561f9013
  21. 11 1月, 2023 1 次提交
    • R
      [Dy2St] 移除 ProgramTranslator (#49628) · 2bb28f31
      Ryan 提交于
      * add enable_to_static and drop some methods of ProgramTranslator
      
      * fix code style
      
      * fix cant import enable_to_static and update unitest
      
      * change unitest and rollback code of PT
      
      * fix can't import as of utils
      
      * roll back PT
      
      * fix roll back
      
      * add some unitest
      
      * add unitest and fix codestyle bug in api.py
      
      * finish all unitest
      
      * remove ProgramTranslator
      
      * fix code style
      
      * restore test_program_translator
      
      * api.py remove get_func
      
      * TestDygraphToStaticCode
      
      * fix check_type and import err
      
      * roll back PT without getcode
      
      * roll back pt with get_code
      
      * convert_to_static
      
      * fix import __all__
      2bb28f31
  22. 10 1月, 2023 1 次提交
  23. 09 1月, 2023 1 次提交
  24. 06 1月, 2023 2 次提交
  25. 03 1月, 2023 2 次提交
  26. 30 12月, 2022 2 次提交
  27. 22 12月, 2022 2 次提交
    • W
      [eager] use CPUAllocator directly (#47125) · 4537ba23
      Weilong Wu 提交于
      * [eager] use CPUAllocator directly
      
      * modify pstring sizeof 48 default
      
      * rm CPU test for NaiveBestFitAllocator
      
      * fix Mac ci compile errors
      
      * use UNUSED to state unused_obj
      
      * mv UNUSED statement to allocator_facade.cc
      
      * fix roi_align
      
      * fix yolov3 test case
      
      * recover original code
      
      * recover original code
      
      * fix trt roi_align test
      Co-authored-by: Njerrywgz <jerrywgz@126.com>
      4537ba23
    • G
      Clean Fluid APIs in padde.fluid.layers.nn (#48908) · dc694f1e
      Ghost Screaming 提交于
      * Fix bug of reduce_sum op. When input.numel() > INT32_MAX, its result
      is wrong.
      
      * Remove climits.
      
      * Clean Fluid APIs in python/paddle/fluid/layers/nn.py,
      migrate spectral_norm and row_conv APIs, and remove ont_hot.
      Including following files:
      1. python/paddle/fluid/layers/nn.py
      2. python/paddle/fluid/tests/unittests/collective/fleet/parallel_dygraph_transformer.py
      3. python/paddle/fluid/tests/unittests/dist_transformer.py
      4. python/paddle/fluid/tests/unittests/dygraph_to_static/transformer_dygraph_model.py
      5. python/paddle/fluid/tests/unittests/ipu/test_one_hot_op_ipu.py
      6. python/paddle/fluid/tests/unittests/test_imperative_auto_prune.py
      7. python/paddle/fluid/tests/unittests/test_imperative_load_static_param.py
      8. python/paddle/fluid/tests/unittests/test_layers.py
      9. python/paddle/fluid/tests/unittests/test_one_hot_op.py
      10. python/paddle/fluid/tests/unittests/test_row_conv_op.py
      11. python/paddle/fluid/tests/unittests/test_runtime_and_compiletime_exception.py
      12. python/paddle/fluid/tests/unittests/test_spectral_norm_op.py
      13. python/paddle/static/nn/__init__.py
      14. python/paddle/static/nn/common.py
      
      * Polish code.
      
      * Fix some bugs.
      
      * Remove useless unittest.
      
      * Fix some bug.
      
      * Polish example code.
      
      * Fix some bugs.
      
      * Fix some bugs.
      dc694f1e
  28. 20 12月, 2022 1 次提交