- 02 6月, 2023 1 次提交
-
-
由 haozi 提交于
* [IR] delete_wrapper * [IR] modify the ast_transformer core logic * [fix] modify the test_origin_info
-
- 31 3月, 2023 1 次提交
-
-
由 张春乔 提交于
* autofix Co-authored-by: NLiyulingyue <83450930+Liyulingyue@users.noreply.github.com> * revert changes in python/paddle/distributed/fleet/utils/hybrid_parallel_util.py * empty commit, trigger ci * fix test_slice --------- Co-authored-by: NSigureMo <sigure.qaq@gmail.com>
-
- 28 3月, 2023 1 次提交
-
-
由 Infinity_lee 提交于
-
- 27 3月, 2023 1 次提交
-
-
由 Infinity_lee 提交于
[CodeStyle][C413][C414] Unnecessary <list/reversed> call around sorted(),<list/reversed/set/sorted/tuple> call within <list/set/sorted/tuple>() (#52065)
-
- 13 3月, 2023 1 次提交
-
-
由 张春乔 提交于
* fix the only one circle import in call_transformer.py * move define of CONVERSION_OPTIONS from convert_call_func.py to program_translator.py * delete the self import of program_translator.py * fix import failed problem * define variable in utils.py * move is_builtin to utils.py * move is_builtin to utils.py * fix import errors * fix import errors * fix something * Update python/paddle/jit/dy2static/call_transformer.py Co-authored-by: NAurelius84 <zhangliujie@baidu.com> * Update python/paddle/jit/dy2static/call_transformer.py --------- Co-authored-by: NAurelius84 <zhangliujie@baidu.com>
-
- 13 12月, 2022 2 次提交
-
-
由 JYChen 提交于
* remove non-public apis from __all__ * fix code style
-
由 Nyakku Shigure 提交于
* isort jit * refine comment
-
- 01 12月, 2022 1 次提交
-
-
由 Aurelius84 提交于
* [Fluid Clean]Migrate utils files and delete dygraph_to_static dir * fix setup.py.in * fix import * fix unittest * fix code style * fix unittest
-
- 30 11月, 2022 1 次提交
-
-
由 Aurelius84 提交于
* [Fluid clean]Migrate base/call/print et.al transformer into paddle.jit * fix phi kernel * Revert "fix phi kernel" This reverts commit eff8891c7efda6e49799edbcaef2ca50379d50ef.
-
- 29 11月, 2022 1 次提交
-
-
由 Aurelius84 提交于
* [Fluid Clean]Migrate if/while/return/break transformer into paddle.jit * migrate call_transformer * migrate call_transformer
-
- 23 10月, 2022 1 次提交
-
-
由 Nyakku Shigure 提交于
* update config * re-blacken python code * temporarily disable date and diff_py_file * skip a format
-
- 19 10月, 2022 1 次提交
-
-
由 Nyakku Shigure 提交于
-
- 27 9月, 2022 1 次提交
-
-
由 Nyakku Shigure 提交于
* [CodeStyle] remove all future import * revert test_error.py * restore future import in example code
-
- 14 9月, 2022 1 次提交
-
-
由 Nyakku Shigure 提交于
* trim trailing whitespace * fix `.cmake-format.py` * revert npu ut changes, avoid npu ci error
-
- 02 9月, 2022 1 次提交
-
-
由 xiongkun 提交于
* 1. make list transformer into jit form. 2. fix some bugs in tensor_array, such as append. 3. enhance the function analysis visitor to recognize push/pop. 4. add setter/getter helper to deal with 2+ name sets. * fix ci errors: 1. add to_tensor_array logic in convert_cond 2. fix IfExpr error. 3. fix erros while return_names or push_pop_names is None 4. fix slice error in a[i]=1 where a is tensor_array 5. add pop interface in Variable
-
- 12 7月, 2022 1 次提交
-
-
由 xiongkun 提交于
* change NameVisitor to FunctionScopeAnalysis * polish the logic of undefined var in while_loop. create vars after body execution * replace old NameVisitor in while and fix all CI * Togather with CreateVariableTransformer * add create_variable_transformer * fix bugs * merge * fix some error, TODO: ForNodePreTransform ahead * merge for unite PR * fix conflict with base_transformer PR * fix ci errors, fix [for i in range()] error * fix according to code review
-
- 06 7月, 2022 1 次提交
-
-
由 xiongkun 提交于
* add support for control flow block analysis * move FunctionNameLivenessAnalysis into utils * pass test_ifelse.py * remove duplicate data_layer_not_check * pass the test_ifelse.py * fix unittest error . * fix all ci error in first version * temporay disable CreateVariableTransformer * fix ci errors * fix function name liveness analysis bugs * modifty def cond * fix * fix ci error - v2 * fix by code review * change return_name_ids -> return_name
-
- 05 7月, 2022 1 次提交
-
-
由 WangZhen 提交于
* Add BaseTransformer for dy2st error message * Fix return_transformer error * Polish dy2st error info in runtime * Fix UT error * Polish runtime error code
-
- 30 6月, 2022 1 次提交
-
-
由 xiongkun 提交于
* merge and add base support for non-local for * for and while non-local support * fix ci errors: v1 * fix bug * fix * fix code * fix * fix * fix
-
- 28 6月, 2022 1 次提交
-
-
由 Aurelius84 提交于
* [Dy2Stat]Polish all API name of _jst
-
- 27 6月, 2022 1 次提交
-
-
由 Aurelius84 提交于
-
- 23 6月, 2022 1 次提交
-
-
由 Aurelius84 提交于
* [Dy2Stat]Support nonlocal mechanism in IF ast transformer * support prune return vars in cond * fix unittest * fix unittest * fix static check
-
- 13 6月, 2022 1 次提交
-
-
由 Aurelius84 提交于
* [Dy2Stat]Remove fluid.layers in transformer code * remove useless return_name_vars * fix unittest * fix unittest * fix unittest
-
- 05 6月, 2022 1 次提交
-
-
由 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
-
- 27 5月, 2022 1 次提交
-
-
由 Aurelius84 提交于
* [Dy2Stat]Replace paddle.jit.dy2stat with _jst * [Dy2Stat]Replace paddle.jit.dy2stat with _jst * refine code style * refine code style
-
- 05 8月, 2021 1 次提交
-
-
由 0x45f 提交于
* integrated gast library * integrated gast library * fix unittest and remove ast2.py * remove 'gast' from __all__ in __init__.py * add copyright in other files * fix copyright
-
- 04 6月, 2021 1 次提交
-
-
由 Huihuang Zheng 提交于
This PR made these changes to support double grad: 1. Translate `paddle.grad` to `paddle.static.gradients` to support double grad for dy2stat. 2. Fix IfElseTransformer bug which may not change value if "Store before Load" variable is in "Store" statement is in IfElse conditional statement 3. Add `DOut` to support double grad variables in `run_program_op` 4. Add support for renaming for double grads for `jit.save/load`
-
- 09 4月, 2021 1 次提交
-
-
由 Aurelius84 提交于
* fix undefind var in For * fix code style
-
- 24 11月, 2020 1 次提交
-
-
由 Huihuang Zheng 提交于
The PR description is long. See details in the PR link.
-
- 19 11月, 2020 1 次提交
-
-
由 liym27 提交于
-
- 29 9月, 2020 1 次提交
-
-
由 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
-
- 31 8月, 2020 1 次提交
-
-
由 Aurelius84 提交于
* Fix Python Version compatibility * add import six
-
- 11 6月, 2020 1 次提交
-
-
由 liym27 提交于
[Dy2Static]Convert var.shape stmt and Convert the return variables of Tensor-dependent 'if' staments to Tensor if it not (#24911) * Support int and long: int or long -> six.integer_types. * Modify test_tensor_shape: fix bug and modify comment. * Support convert_var_shape to convert var.shape stmt * Modify code in ifelse_simple_func.py because don't support return non-Tensor in Tensor-dependent 'if' stament currently. * Convert the return variables of Tensor-dependent 'if' staments to Tensor if it not. test=develop
-
- 05 6月, 2020 1 次提交
-
-
由 liym27 提交于
* cast var in convert_logical_XX. * Add convert_ifelse function in convert_operators.py * Add logical_transformer. Remove LogicalTransformer from loop_transformer.py * Revert modified tests in PR24799(convert_while_stmt). * Comment and modify code that doesn't support `return` statement. * Remove unnecessary class: MergeAssignTransformer, NodeTestTransformer and IfConditionVisitor in ifelse_transformer.
-
- 03 6月, 2020 1 次提交
-
-
由 liym27 提交于
* Support return variable in only one of if body or else. * remove after_visit in IfElseTransformer. * Modify the result of get_name_ids in test_ifelse_basic.py * Add unittest to test the new case. * Modify code according to reviews.
-
- 19 5月, 2020 1 次提交
-
-
由 Aurelius84 提交于
* fix bug with `if Tensor` in is_control_flow test=develop * remove continue test=develop * Support lambda and add unittest test=develop
-
- 13 5月, 2020 1 次提交
-
-
由 Aurelius84 提交于
* fix bug with `if Tensor` in is_control_flow test=develop * remove continue test=develop
-
- 08 5月, 2020 1 次提交
-
-
由 Aurelius84 提交于
* support to train in static * support to independent decorator * remove in_dygraph_mode condition in ProgramTranslator * fix import param_guard and add train/eval test=develop * Modify into ShareVarsFromScope and rm __all__ in partial_program test=develop
-
- 24 4月, 2020 1 次提交
-
-
由 liym27 提交于
* Simplify code for gast.If in is_control_flow_to_transform. * Move IsControlFlowVisitor to file utils. * Don't use convert_call for build-in func in CallTransformer. * Optimize api is_control_flow_to_transform. * Polish the document of IsControlFlowVisitor.
-
- 11 4月, 2020 1 次提交
-
-
由 Aurelius84 提交于
* Spport transform two independed function in dygraph_to_static_output test=develop * fix unittest error test=develop
-