1. 22 5月, 2023 1 次提交
    • M
      [dygraph]unify _non_static_mode() in_dygraph_mode() and in_dynamic_mode() (#53856) · 3794d171
      Meteor Liu 提交于
      * [dygraph]unify _non_static_mode() in_dygraph_mode() and in_dynamic_mode()
      
      * [dygraph]unify _non_static_mode() in_dygraph_mode() and in_dynamic_mode()
      
      * [dygraph]unify _non_static_mode() in_dygraph_mode() and in_dynamic_mode()
      
      * [dygraph]unify _non_static_mode() in_dygraph_mode() and in_dynamic_mode()
      
      * [dygraph]unify _non_static_mode() in_dygraph_mode() and in_dynamic_mode()
      
      * [dygraph]unify _non_static_mode() in_dygraph_mode() and in_dynamic_mode()
      
      * fixed cyclic reference that caused patial import
      
      * fixed bad change
      
      * fix bad import
      
      * fix bad import
      
      * fix bad import
      
      * fix ut failed caused by change in_dynamic_mode
      
      * fix ut failed caused by change in_dynamic_mode
      
      * fixed usage of in_dynamic_mode() or in_dygraph_mode()
      
      * revert python3 to python in .pre-commit-config.yaml
      
      * fix merge conflicts
      3794d171
  2. 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
  3. 28 12月, 2022 1 次提交
    • rm legacy nn part2 (#49259) · 69e51c77
      姜永久 提交于
      * rm legacy nn part2
      
      * rm _non_static_mode
      
      * modify
      
      * modify unpool test
      
      * modify unpool test
      
      * modify loss
      
      * keep legacy for layer_norm
      69e51c77
  4. 29 11月, 2022 1 次提交
  5. 23 10月, 2022 1 次提交
  6. 12 10月, 2022 1 次提交
  7. 27 9月, 2022 1 次提交
  8. 14 9月, 2022 1 次提交
  9. 26 8月, 2022 2 次提交
    • W
      [Eager] delete final state pre-name (#45306) · 126940b3
      wanghuancoder 提交于
      126940b3
    • L
      fix en docs in fft and io.dataset (#44948) · 2dca718a
      Liyulingyue 提交于
      * irfftn; test = docutment_fix
      
      * fft; test=document_fix
      
      * fft; test=document_fix
      
      * fft; test=document_fix
      
      * subdata; test=document_fix
      
      * adaptive_avg_pool2d; test=document_fix
      
      * adaptive_avg_pool3d; test = document_fix
      
      * ftt; test=document_fix
      
      * ftt; test=document_fix
      
      * AvgPool1D; test=document_fix
      
      * avg_pool1d; test=document_fix
      
      * test=document_fix
      
      * test=document_fix
      
      * test=document_fix
      
      * test=document_fix
      
      * fft; test=document_fix
      
      * emb; test=document_fix
      
      * emb; test=document_fix
      
      * emb;test=document_fix
      
      * fold; test=document_fix
      
      * fold; test=document_fix
      
      * fold; test=document_fix
      
      * fold;test=document_fix
      
      * GELU;test=document_fix
      
      * update irfftn docs;test=document_fix
      
      * Update fft.py
      
      * Update fft.py
      
      * Update common.py
      
      * Update common.py
      
      * Update fft.py
      
      * Update input.py
      
      * Update pooling.py
      
      * dropout2d; test=document_fix
      
      * Fold; test=document_fix
      
      * update fold math;test=document_fix
      
      * Update common.py
      Co-authored-by: NLigoml <39876205+Ligoml@users.noreply.github.com>
      2dca718a
  10. 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
  11. 31 5月, 2022 1 次提交
    • Z
      add embedding yaml (#43029) · 2785f876
      zyfncg 提交于
      * add embedding yaml
      
      * fix infermeta bug
      
      * fix bug of selected_rows infer_meta
      
      * fix selected_rows
      
      * add unittest
      2785f876
  12. 25 3月, 2022 1 次提交
    • J
      Refactor Dygraph Flags (#40786) · 3085d5e4
      Jiabin Yang 提交于
      * refactor eager flags
      
      * fix flags error when we switch from eager to dygraph
      
      * fix ci problem
      
      * fix ci
      
      * fix ci
      
      * merge develop and fix code style
      
      * merge develop and fix code style
      
      * fix op test error
      
      * fix op test error
      
      * fix op test error
      
      * fix op test error
      
      * fix op test error
      
      * merge develop
      3085d5e4
  13. 15 3月, 2022 1 次提交
    • H
      Move one hot to phi (#39876) · 7701db37
      hong 提交于
      * move one hot to phi; test=develop
      
      * fix bugs; test=develop
      
      * fix bugs; test=develop
      
      * add infer meta; test=develop
      
      * fix bugs; test=develop
      
      * resolve confilct
      
      * resolve confilct
      
      * fix bug;
      
      * fix error; test=develop
      
      * update; test=develop
      
      * polish code; test=develop
      
      * add one api in eager mode; test=develop
      
      * add one hot test; test=develop
      
      * remove use less code; test=develop
      
      * fix bug; test=develop
      
      * polish code; test=develop
      
      * polish code; test=develop
      7701db37
  14. 22 2月, 2022 1 次提交
  15. 08 2月, 2022 1 次提交
  16. 26 7月, 2021 1 次提交
  17. 15 7月, 2021 1 次提交
  18. 29 4月, 2021 1 次提交
  19. 27 4月, 2021 1 次提交
    • Z
      update 2.0 public api in nn (#31912) · 3b81f2b8
      zhiboniu 提交于
      * update 2.0 public api in nn
      
      * replace Chinese character cause error in ci;synchronization with pr:#32588 to avoid 'ascii' codec in python2
      
      * numbers used in paddle.nn.functional.norm but not imported
      3b81f2b8
  20. 01 4月, 2021 1 次提交
  21. 03 12月, 2020 1 次提交
    • T
      fix gpu outofrange (#29238) · 83587916
      tangwei12 提交于
      * fix gpu emb out of range
      
      Change-Id: I5794ac73bd634d5ea069a6fbbd914274b6d6b7bf
      
      * fix doc
      
      Change-Id: I5a3350b2930a9ab2f52116c192b087307faf8fdf
      83587916
  22. 24 11月, 2020 1 次提交
    • L
      Upgrade string literals to raw string (#28989) · 3815d7aa
      Leo Chen 提交于
      * upgrade comment string to raw string
      
      * fix string in
      
      * fix string with ' '
      
      * revert update on comments
      
      * upgrade only necessary
      
      * fix sample code checker
      
      * fix comments with '''
      3815d7aa
  23. 20 11月, 2020 2 次提交
  24. 10 11月, 2020 1 次提交
  25. 16 10月, 2020 1 次提交
  26. 14 10月, 2020 1 次提交
    • C
      Remove and reorganize the alias of APIs (#27717) · d05058d2
      chentianyu03 提交于
      * modify cond while_loop to paddle.static.nn.cond
      
      * modify crop_tensor to paddle.crop
      
      * modify Variable to paddle.static.Variable
      
      * remove nn.beam_search, nn.beam_search_decode, nn.gather_tree
      
      * remove bpr_loss, center_loss, rank_loss, smooth_l1, teacher_student_sigmoid_loss, edit_distance, sampled_softmax_with_cross_entropy in nn.functional
      
      * remove apis in nn.functional.learn_rate.py
      
      * remove pool2d, pool3d, adaptive_pool2d, adaptive_pool3d in nn.functional
      
      * remove apis in nn.functional.vision
      
      * remove erf, soft_relu in nn.functional.activation
      
      * remove apis in nn.functional.extension
      
      * remove nn.functional.rnn
      
      * remove hash from nn.functional.lod
      
      * remove row_conv from nn.functional.extension
      
      * remove one_hot, pad2d, pad_constant_like from nn.functional.common
      
      * remove nn.gather_tree, nn.BilinearTensorProduct, nn.Pool2D, nn.Pad2D
      
      * remove apis from optimizer.__init
      
      * remove tensor.creation.fill_constant
      
      * remove elementwise_mul in nn.functional.common and  modify to paddle.multiply
      
      * remove  tensor.stat.reduce_mean
      
      * remove reduce_all, reduce_any in tensor.logic
      
      * remove apis in tensor.math
      
      * remove apis in tensor.__init__
      
      * remove has_inf, has_nan in tensor.search
      
      * remove apis in framework.__init__
      
      * remove apis in paddle.__init__
      
      * remove apis in nn.functional.__init__
      
      * modify removed alias apis to raw api in doc and unittests
      
      * fix remove grid_sample bug
      
      * modify removed alias apis to raw api in doc and unittests
      
      * modify removed alias apis to raw api in doc and unittests
      
      * modify removed alias apis to raw api in doc and unittests
      
      * modify removed alias apis to raw api in doc and unittests
      
      * modify removed alias apis to raw api in doc and unittests
      
      * modify removed alias apis to raw api in doc and unittests
      
      * delete alias api relastions in doc
      
      * reserve paddle.compat, paddle.sysconfig
      
      * remove unittest for paddle.reduce_all, paddle.reduce_any
      
      * modify removed alias apis to raw api in doc and unittests
      
      * recover paddle.save and paddle.load
      
      * resolve conflicts
      
      * fix sample code missing paddle.enable_static() bug
      
      * fix sample code missing paddle.enable_static() bug
      
      * fix to_string sample code error
      d05058d2
  27. 08 9月, 2020 1 次提交
    • T
      fix weight (#26986) · 5dec254b
      tangwei12 提交于
      * fix weight
      
      * fix weight and fix doc
      
      * fix embeeding padding idx
      
      * add UT
      
      * fix interval
      5dec254b
  28. 01 9月, 2020 1 次提交
  29. 24 8月, 2020 1 次提交
  30. 20 8月, 2020 1 次提交
    • Y
      Add new one hot function in nn.functional (#26183) · 8c48c7da
      yukavio 提交于
      * add input.py  file
      
      * write input.py
      
      * fix init file
      
      * add unit tests
      
      * fix dygraph and input shape
      
      * Revert "fix dygraph and input shape"
      
      This reverts commit 89ad8664.
      
      * fixed pylint
      
      * fix deprecated
      
      * fix old op
      
      * fix old op
      
      * set check_dygraph=True
      
      * Revert "set check_dygraph=True"
      
      This reverts commit a8e93e33.
      
      * test commit
      
      * fix doc and change test file name
      8c48c7da