- 15 5月, 2020 1 次提交
-
-
由 Aurelius84 提交于
* [Dy2Stat] Add test for ptb model. (#24076) * [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 * [dy2static] Add print transformer and unify print format (#24068) * 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 * [dy2static] Support for static graph training with @declarative decorator (#24259) * 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 * [Dy2Stat] Optimize loop cond (#24049) * 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. * revert modification from #24259 * [dy2stat]Support save_inference_model in program_translator (#24353) * 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 * Fix bug with `if Tensor` in is_control_flow (#24433) * fix bug with `if Tensor` in is_control_flow test=develop * remove continue test=develop * Revert "[dy2static] Add print transformer and unify print format (#24068)" This reverts commit 09dd0190. * Revert "[dy2static] Add print transformer and unify print format (#24068)" This reverts commit 09dd0190. * fix sample code in sava_inference_model test=develop Co-authored-by: Nliym27 <33742067+liym27@users.noreply.github.com> Co-authored-by: NChen Weihang <chenweihang@baidu.com>
-
- 18 4月, 2020 1 次提交
-
-
由 liym27 提交于
* [Cherry-pick Release/2.0] remove redundant visit func, test=develop (#23877) * [Cherry-pick Release/2.0] [dy2static]Fix a bug of is_dygraph_api and move BasicApiTransformer to a separate file(#23923) * 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 Co-authored-by: NChen Weihang <chenweihang@baidu.com>
-
- 10 4月, 2020 1 次提交
-
-
由 Aurelius84 提交于
* Refine mechanism of calling outer function test=develop * fix typo test=develop
-
- 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
-
- 24 3月, 2020 2 次提交
- 19 3月, 2020 2 次提交
-
-
由 Aurelius84 提交于
* Support to use external function test=develop * refine the parms of ast_to_func test=develop
-
由 Huihuang Zheng 提交于
1. Add support for Break and Continue in Dygraph to Static 2. Also add support for gast.Not in NodeTestTransformer 3. Also add support for logical op transformation in LoopTransformer
-
- 17 3月, 2020 1 次提交
-
-
由 liym27 提交于
* Support Tensor.shape in control flow if/for/while and separate TensorShapeTransformer from BasicApiTransformer. test=develop
-
- 14 3月, 2020 1 次提交
-
-
由 Aurelius84 提交于
* Support and/or in controlFlow if test=develop * Refine IsControlFlow interface test=develop
-
- 12 3月, 2020 1 次提交
-
-
由 liym27 提交于
* support list in control flow if. test=develop * support list in for/while and supplement tests. test=develop
-
- 11 3月, 2020 2 次提交
-
-
由 Huihuang Zheng 提交于
1. Add basic support for `for in range` loop 2. Move `test_dygraph_to_static_*` to `dygraph_to_static` dir and rename them 3. Add test case for dict in while_loop
-
由 Aurelius84 提交于
+ Refine code structure and move code related with control flow `if` into `ifelse_transformer.py` + Merge code of `ast_utils.py` into `utils.py`
-
- 07 3月, 2020 1 次提交
-
-
由 liym27 提交于
-
- 06 3月, 2020 1 次提交
-
-
由 liym27 提交于
* support basic tensor.shape. * Support tensor.shape with dependencies.
-
- 27 2月, 2020 1 次提交
-
-
由 liym27 提交于
* Support fetch and run program in the process of dygraph_to_static_output. test=develop * fix to_source(gast) and remove dygraph API such as Conv2D, Linear. test=develop
-
- 24 2月, 2020 1 次提交
-
-
由 liym27 提交于
* support dygraph to static graph for simple case. * add test for dygraph API recognition. test=develop * support basic to_variable api. test=develop * update dict: dygraph_class_to_static_api * add all tests of dygraph api. test=develop * use gast/astor instead of ast/codegen for the compatibility of PY2 and PY3. test=develop * add arg 'num_flatten_dims' for fc ast node. test=develop * Modify names of class by Camel-Case.
-