- 26 10月, 2020 1 次提交
-
-
由 Aurelius84 提交于
* Join break cond with while cond * remove usless code * refine the if code * Split into BreakTransfromOptimizer * add BreakTransformOptimizer in ast_transformer * add more comment
-
- 22 10月, 2020 1 次提交
-
-
由 Aurelius84 提交于
* remove some judgement * fix len(outputs) == 1
-
- 20 10月, 2020 1 次提交
-
-
由 Aurelius84 提交于
* refine code of DygraphToStaticAst * add __init__ function
-
- 17 10月, 2020 1 次提交
-
-
由 Aurelius84 提交于
* fix test_lstm unittest failed * add more unittest * modify cmakelist * fix judgement
-
- 16 10月, 2020 2 次提交
-
-
由 Guo Sheng 提交于
* Incorporate cudnn_lstm into LSTM api. test=develop * Make coalesce_tensor support alignment optionally. test=develop * Reorganize RNN apis. test=develop * Fix cudnn rnn layout conversion. test=develop * Add sequence_length support for RNN cudnn implement. Add optional init_h and init_c gradient for cudnn_lstm_op. test=develop * Use create_parameter for rnn cudnn impl. test=develop * Move `self._flat_weight = self.create_parameter()` in RNNBase to main_program. test=develop * Update RNN api unittest to use set_device. test=develop * Fix set_place for unit tests of RNN apis. test=develop * Fix use_align in coalesce_tensor_op. test=develop * Adjust RNN apis arguments according to comments. test=develop * Polish documents for SimpleRNN apis. test=develop * Refine random seed in cudnn_lstm_op. Expose rnn params from sublayers to RNN. test=develop * Fix RNN saving for jit.save. Refine cudnn_lstm dropout behavior. test=develop * Fix doc of GRU. test=develop * Use ShareDataWith to avoid copying for cudnn_lstm_op test. test=develop * Remove updates on cudnn_lstm temporarily. test=develop * Use ShareDataWith to avoid copying for cudnn_lstm_op test. test=develop * Refine random seed in cudnn_lstm_op. test=develop * Fix test_lstm by adjust ConcreteProgram buffer getter. test=develop * Use create_parameter instead of create_var for rnn._flat_weight for static graph usage. test=develop * Remove W input for cudnn_lstm to pass unused_var_check. test=develop * Add test_predict for RNN unit tests coverage. test=develop * Fix code style of rnn. test=develop * Fix F.rnn usage in rnn.py. test=develop
-
由 Aurelius84 提交于
* Fix save in eval mode * remove assert statement * fix test_partial_program failed * add more test * modify back into _train_program
-
- 14 10月, 2020 1 次提交
-
-
由 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
-
- 13 10月, 2020 1 次提交
-
-
由 Huihuang Zheng 提交于
As the title
-
- 30 9月, 2020 1 次提交
-
-
由 liym27 提交于
-
- 29 9月, 2020 2 次提交
-
-
由 Huihuang Zheng 提交于
Refine Dy2stat APIs to 2.0rc After discussion, we accepted 3 key points from reviewers: 1. In 2.0rc we changed dygraph_to_static folder to dy2static 2. Keep the three files: convert_call_func.py, convert_operators.py, variable_trans_func.py 3. Remove convert_operators path when users import convert_xxx. After this PR, users can import convert_xxx APIs by: `import paddle.jit.dy2static.convert_xxx` The file structure will be: ``` jit dy2static convert_operators.py convert_func_call.py variable_trans_func.py ``` Detail changed API in files: In python/paddle/jit/dygraph_to_static/convert_call_func.py: from ...fluid.dygraph.dygraph_to_static.convert_call_func import convert_call #DEFINE_ALIAS In python/paddle/jit/dygraph_to_static/convert_operators.py: from ...fluid.dygraph.dygraph_to_static.convert_operators import cast_bool_if_necessary #DEFINE_ALIAS from ...fluid.dygraph.dygraph_to_static.convert_operators import convert_assert #DEFINE_ALIAS from ...fluid.dygraph.dygraph_to_static.convert_operators import convert_ifelse #DEFINE_ALIAS from ...fluid.dygraph.dygraph_to_static.convert_operators import convert_len #DEFINE_ALIAS from ...fluid.dygraph.dygraph_to_static.convert_operators import convert_logical_and #DEFINE_ALIAS from ...fluid.dygraph.dygraph_to_static.convert_operators import convert_logical_not #DEFINE_ALIAS from ...fluid.dygraph.dygraph_to_static.convert_operators import convert_logical_or #DEFINE_ALIAS from ...fluid.dygraph.dygraph_to_static.convert_operators import convert_print #DEFINE_ALIAS from ...fluid.dygraph.dygraph_to_static.convert_operators import convert_var_dtype #DEFINE_ALIAS from ...fluid.dygraph.dygraph_to_static.convert_operators import convert_var_shape #DEFINE_ALIAS from ...fluid.dygraph.dygraph_to_static.convert_operators import convert_while_loop #DEFINE_ALIAS In python/paddle/jit/dygraph_to_static/variable_trans_func.py: from ...fluid.dygraph.dygraph_to_static.variable_trans_func import create_fill_constant_node #DEFINE_ALIAS from ...fluid.dygraph.dygraph_to_static.variable_trans_func import create_static_variable_gast_node #DEFINE_ALIAS from ...fluid.dygraph.dygraph_to_static.variable_trans_func import data_layer_not_check #DEFINE_ALIAS from ...fluid.dygraph.dygraph_to_static.variable_trans_func import to_static_variable #DEFINE_ALIAS from ...fluid.dygraph.dygraph_to_static.variable_trans_func import to_static_variable_gast_node #DEFINE_ALIAS
-
由 Huihuang Zheng 提交于
This PR fixed two bugs when converting LSTM in dy2stat: is_unsupported has a condition can trigger Python syntax error LSTM API's implementation in _rnn_static_graph doesn't include parameter initialization, which can cause dy2stat error.
-
- 24 9月, 2020 1 次提交
-
-
由 Aurelius84 提交于
* rename StaticLayer * rename
-
- 22 9月, 2020 1 次提交
-
-
由 Aurelius84 提交于
* refine error mesg
-
- 17 9月, 2020 2 次提交
-
-
由 liym27 提交于
* Add env value to log to stdout; 2.Add logger name * Optimize log messages in dygraph-to-static * Replace logging.warn and warnings.warn with logging_utils.warn
-
由 Huihuang Zheng 提交于
Change ProgramTranslator.enable_declarative to ProgramTranslator.enable_to_static to meet API 2.0
-
- 11 9月, 2020 1 次提交
-
-
由 liym27 提交于
-
- 09 9月, 2020 2 次提交
-
-
由 liym27 提交于
-
由 Aurelius84 提交于
* Add naming rule if not specific InputSpec.name * fix function name typo * refine comment * remove print statement
-
- 07 9月, 2020 1 次提交
-
-
由 Aurelius84 提交于
* add descriptor cache * fix self arugments * deal case if instance is None * clean code * fix usage
-
- 02 9月, 2020 2 次提交
- 01 9月, 2020 1 次提交
-
-
由 liym27 提交于
[Dy2Stat-debugging] Fix bug: Returns True if the verbosity level set by the user is greater than or equal to the log level (#26858)
-
- 31 8月, 2020 2 次提交
-
-
由 Aurelius84 提交于
-
由 Aurelius84 提交于
* Fix Python Version compatibility * add import six
-
- 28 8月, 2020 1 次提交
-
-
由 liym27 提交于
* [Dy2Stat] Add debugging and logging mechanism for dygraph to static. * Remove TransformerError temporarily. * import mock in PY2, from unittest import mock in PY3. test=develop * Expose interfaces set_code_level and set_verbosity in paddle.jit, fix doc of the two interface. * polish doc of set_verbosity and set_code_level.
-
- 27 8月, 2020 1 次提交
-
-
由 Aurelius84 提交于
* add InputSpec * add unittest for tensorSpec and SimpleNet
-
- 26 8月, 2020 1 次提交
-
-
由 Aurelius84 提交于
-
- 21 8月, 2020 1 次提交
-
-
由 Huihuang Zheng 提交于
As the title
-
- 19 8月, 2020 2 次提交
- 12 8月, 2020 1 次提交
-
-
由 liym27 提交于
[Dy2Stat] Removes temporary files created during the transformation of dygraph to static graph. (#26150)
-
- 07 8月, 2020 2 次提交
-
-
由 liym27 提交于
[Dy2Stat-ErrorMessage]Optimize error value to improve readability when error raised in runtime. (#25970) * don't remove op_callstack * [Dy2Stat-ErrorMessage] Optimize error value to improve readability if error raised in run-time. 1. update op_callstack with original information; 2. simplify error value to improve readability if error raised in run-time. * Fix error in Python3.
-
由 liym27 提交于
* [Dy2Stat-ErrorMessage]Enhance original error and create new exception. test=develop * Delete redundant code and change func name to create_and_update_origin_info_map. * optimize loop_transformer. * fix bug in print_transformer. * Modify code according to the comments.
-
- 06 8月, 2020 1 次提交
-
-
由 Shibo Tao 提交于
* add paddle.utils.deprecated. * add docstring. test=develop * add alias paddle.utils.deprecated. test=develop * rm deprecated in python/paddle/fluid/annotations.py. test=develop * 1. check version before warning. 2. bug fix. test=develop * bug fix. test=develop * use paddle.fluid.require_version. test=develop * fix doc * fix doc. test=develop * fix doc. test=develop * bug fix. test=develop * use packaging.version. test=develop. * enhance doc. test=develop * add compare_version function. test=develop * add version.py. test=develop * remove packaging. test=develop * move compare_version to deprecated.py. test=develop * remove print. test=develop * fix. test=develop * fix. test=develop * fix. test=develop * fix. test=develop * inline. test=develop * fix. test=develop
-
- 04 8月, 2020 1 次提交
-
-
由 Aurelius84 提交于
* fix eval() sync problem * add unittest * modify according reviewer * fix unittest failed
-
- 30 7月, 2020 1 次提交
-
-
由 liym27 提交于
[Dy2Stat-ErrorMessage] Add interface:create_origin_info_map and attach_origin_info for AST node (#25627) * Add interface:create_origin_info_map and attach_origin_info for AST node. test=develop * Fix code according to comments from reviewers. test=develop
-
- 29 7月, 2020 1 次提交
-
-
由 Chen Weihang 提交于
* remove ProgramTranslator.save_inference_model * adapt save_quantized_model * revert buffer check implemention * remove useless import function
-
- 21 7月, 2020 1 次提交
-
-
由 Huihuang Zheng 提交于
Modify the print in Dy2stat for dynamic type. Unit test is covered in old test_print.py
-
- 16 7月, 2020 2 次提交
-
-
由 liym27 提交于
-
由 Aurelius84 提交于
* remove op call stack test=develop * fix typo test=develop
-