- 09 6月, 2020 1 次提交
-
-
由 liym27 提交于
* Move function 'convert_len' to file convert_operators.py * Support that for statements are transformed to while statements. * Fix bug: raise None -> return None. * Support variable loaded and created in loop. * Use int64 in Py2 and Py3 in function to_static_variable.
-
- 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 3 次提交
-
-
由 Chen Weihang 提交于
* support for iter & enumerate varbase, test=develop * revert IsControlFlowVisitor change, test=develop
-
由 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.
-
由 liym27 提交于
* Support convert_while_loop. * Comment code that not supported 'if' in test_break_continue. * Convert int into tensor to support 'if' stmt in for/while loop. * Add unittest to test all cases of convert_logical_XX. * Add unittest to test all cases of convert_while_loop. * Fix bug in LogicalOpTransformer. test=develop
-
- 02 6月, 2020 1 次提交
-
-
由 Chen Weihang 提交于
-
- 28 5月, 2020 2 次提交
-
-
由 Aurelius84 提交于
* support nested input and output test=develop * remove code of convert type(output) in unittest test=develop * add warning test=develop
-
由 liym27 提交于
-
- 27 5月, 2020 1 次提交
-
-
由 Aurelius84 提交于
-
- 26 5月, 2020 2 次提交
-
-
由 liym27 提交于
-
由 Aurelius84 提交于
* [dy2stat] Support len * add convert_call func * refine code test=develop
-
- 21 5月, 2020 1 次提交
-
-
由 liym27 提交于
[Dy2Stat]Support to transform sequence assignments and multi-target assignments to normal assignments (#24643)
-
- 19 5月, 2020 3 次提交
-
-
由 Aurelius84 提交于
* fix bug with `if Tensor` in is_control_flow test=develop * remove continue test=develop * Support lambda and add unittest test=develop
-
由 liym27 提交于
* Support to create LoDTensorArray in control flow (cond and while_loop) * Fix bug: return LoDTensorArray in while_loop * Change code in list_transformer.py to accommodate the new features.
-
由 Chen Weihang 提交于
-
- 18 5月, 2020 1 次提交
-
-
由 Chen Weihang 提交于
* initial test * for enumerate basic implement, test=develop * update unittests, test=develop * refine unittests to adapt new training mode, test=develop * refactor for node stmts parsing code, test=develop * self-review & polish details, test=develop
-
- 15 5月, 2020 3 次提交
-
-
由 Huihuang Zheng 提交于
As the title.
-
由 Chen Weihang 提交于
* fix some print transformer problems, test=develop * simplify writing & avoid bud, test=develop * polish detail, test=develop
-
由 Aurelius84 提交于
* fix convert call globals_funcs test=develop * add import statement test=develop
-
- 14 5月, 2020 1 次提交
-
-
由 Huihuang Zheng 提交于
Add assert grammar for ProgramTranslator
-
- 13 5月, 2020 1 次提交
-
-
由 Aurelius84 提交于
* fix bug with `if Tensor` in is_control_flow test=develop * remove continue test=develop
-
- 12 5月, 2020 1 次提交
-
-
由 liym27 提交于
-
- 09 5月, 2020 2 次提交
-
-
由 Aurelius84 提交于
* support save_inference_model in program_translator test=develop * fix compatibility with OrderedDict.values() in python3 test=develop * synchronized random_seed test=develop * Polish Error Message test=develop
-
由 liym27 提交于
* [Dy2Stat] Add test for bert pretraining. * Construct fake data. * Synchronous random seed of program.
-
- 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
-
- 06 5月, 2020 1 次提交
-
-
由 liym27 提交于
* Replace dygraph_to_static_func with @declarative or program_translator.get_func in test_list.py * Add comments in ConditionalBlock. * Support list pop last item. * Support pop the i-th item. * Support an empty tensor array as Input in assign op and set the kernel type is float.
-
- 30 4月, 2020 1 次提交
-
-
由 liym27 提交于
-
- 27 4月, 2020 1 次提交
-
-
由 Chen Weihang 提交于
* add print transformer & unify print format, test=develop * remove using of dygraph_to_static_func, test=develop * remove python stdout capture, test=develop * fix compatibility problems for PY2, test=develop * fix detail error, test=develop * fix type analysis bug, test=develop * fix print tuple compatible error in PY2, test=develop * replace get_func to declarative, test=develop * fix detail bug, test=develop * fix some detail problems, test=develop * change visit_call in print transformer, 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.
-
- 20 4月, 2020 1 次提交
-
-
由 liym27 提交于
Fix bug in convert_call because difference exists between python3 and python2. test=develop (#23966)
-
- 19 4月, 2020 2 次提交
-
-
由 liym27 提交于
* [Dy2Stat]Support recursive call. * Remove Redundant decorator to pass the Py35 unittest temporarily.
-
由 Huihuang Zheng 提交于
[Dy2stat] Add Test and Example Code for Different Access to ProgramTranslator and Fix Related Bug (#23958) To prepare for publishing APIs, I added tests for that we can access dy2stat through: @fluid.dygraph.declarative @fluid.dygraph.jit.declarative fluid.dygraph.ProgramTranslator() fluid.dygraph.dygraph_to_static.ProgramTranslator() fluid.dygraph.dygraph_to_static.program_translator.ProgramTranslator() It surprised me that we had bugs on those different usages. I have fixed them. I also added example codes for these new APIs This PR also pulls my current PR https://github.com/PaddlePaddle/Paddle/pull/23880, so the PR history is long. For reviewer information, you could review this PR after https://github.com/PaddlePaddle/Paddle/pull/23880 is merged
-
- 18 4月, 2020 1 次提交
-
-
由 Huihuang Zheng 提交于
1. Rename Dygraph To Static Decorators to declarative 2. dygraph_to_static_func is still using in some training tests, I cannot delete it now. 3. Add some API docs
-
- 17 4月, 2020 2 次提交
-
-
由 liym27 提交于
* Move BasicApiTransformer to a separate file. test=develop * Fix a bug: A api in module is not a real dygraph api in dygraph_to_static. test=develop
-
由 Chen Weihang 提交于
-
- 11 4月, 2020 1 次提交
-
-
由 Aurelius84 提交于
* Spport transform two independed function in dygraph_to_static_output test=develop * fix unittest error test=develop
-
- 10 4月, 2020 2 次提交
-
-
由 Aurelius84 提交于
* Refine mechanism of calling outer function test=develop * fix typo test=develop
-
由 liym27 提交于
-
- 09 4月, 2020 1 次提交
-
-
由 Aurelius84 提交于
-
- 04 4月, 2020 1 次提交
-
-
由 Huihuang Zheng 提交于
This CR makes two changes: 1. In old loop_transformer, if a class variable, such as "self.a, foo.bar" is a loop var, the Dy2stat will fail because `def func(self.foo)` is not legal syntax. We support class variable by renaming. 2. After https://github.com/PaddlePaddle/Paddle/pull/22892 is merged, we can support `while x < 10` in dygraph. I enable those tests in corresponding Dy2stat
-