- 09 6月, 2020 2 次提交
-
-
由 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.
-
由 Huihuang Zheng 提交于
[Dy2stat] Add word2vec as unittest
-
- 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.
-
- 04 6月, 2020 2 次提交
-
-
由 Huihuang Zheng 提交于
The random failure at Windows may due to some random gt_boxes can cause some numbers in YoloV3 to be negative thus access the invalid memory. This PR tries to solve it.
-
由 Huihuang Zheng 提交于
Add Yolov3 as ProgramTranslator Unit Test. The YoloV3 code is referred from PaddlePaddle/models/dygraph/yolov3
-
- 03 6月, 2020 4 次提交
-
-
由 Aurelius84 提交于
* add test_bmn_model test=develop * remove random test=develop
-
由 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
-
- 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
-
- 25 5月, 2020 2 次提交
-
-
由 Chen Weihang 提交于
* Revert "Fix test_bert on GPU (#24692)" This reverts commit 62222bf4. * fix random bug in bert unittest, test=develop
-
由 liym27 提交于
DataLoader makes the data diff even if the data of reader is the same on CUDA place. This PR doesn't use DataLoader to pass the test. we will use DataLoader back after we fix it.
-
- 21 5月, 2020 1 次提交
-
-
由 liym27 提交于
[Dy2Stat]Support to transform sequence assignments and multi-target assignments to normal assignments (#24643)
-
- 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
-
- 18 5月, 2020 2 次提交
-
-
由 Aurelius84 提交于
* test_seresnet support gpu test=develop * Set the Flag by core.globals test=develop * modify into set_flags test=develop
-
由 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 1 次提交
-
-
由 Chen Weihang 提交于
* fix some print transformer problems, test=develop * simplify writing & avoid bud, test=develop * polish detail, 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
-
- 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 提交于
* Support LoDTensorArray for slice op. * Support read elements of list in dygraph_to_static * Fix infershape add test for infershape. * Support Tensor for Attr(starts) and Attr(ends). * Use new interfaces in VarTypeInference.
-
- 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 2 次提交
-
-
由 liym27 提交于
* [Dy2Stat] Add test for ptb model. test=develop * Simplify code for gast.If in is_control_flow_to_transform. test=develop * Move IsControlFlowVisitor to file utils. test=develop * Don't use convert_call for build-in func in CallTransformer. test=develop * Optimize api is_control_flow_to_transform. test=develop * Polish the document of IsControlFlowVisitor. test=develop * Use declarative instead of dygraph_to_static_func. test=develop
-
由 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 1 次提交
-
-
由 liym27 提交于
-
- 13 4月, 2020 1 次提交
-
-
由 liym27 提交于
* Add the support of bool list for assign value, test=develop * Fix the assign op test case for bool dtype, test=develop * Revert to usage of 'assign' in test_transformer. test=develop Co-authored-by: Nwawltor <fangzeyang0904@hotmail.com>
-
- 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 提交于
-