- 17 4月, 2020 1 次提交
-
-
由 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 2 次提交
-
-
由 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
-
由 Aurelius84 提交于
* Add unitTest for `Tensor==constant` for ifElse in dygraph2static test=develop
-
- 01 4月, 2020 1 次提交
-
-
由 Huihuang Zheng 提交于
1. Add data_layer_not_check because it is needed in dygraph_to_static where input can be variable size 2. Remove warnings in static analysis because python cannot do exact static analysis
-
- 31 3月, 2020 2 次提交
-
-
由 Huihuang Zheng 提交于
* Remove Read-Only Basic Type Variable in loop_vars test=develop * Put class support in loop for future thing test=develop * Modify based on reviewer's comment test=develop
-
由 Aurelius84 提交于
* Support Parameter type determination test=develop
-
- 29 3月, 2020 2 次提交
-
-
由 Aurelius84 提交于
-
由 Aurelius84 提交于
-
- 26 3月, 2020 4 次提交
-
-
由 Huihuang Zheng 提交于
1. Add Decorator 'dygraph_to_static_program' 2. Add corresponding ProgramTranslator.get_program 3. Add ProgramTranslator.save_inference_model 4. Modified some warning information of dy2stat 5. Change program cache to contain startup_program because for users who gets program to run, they may like to initialize startup program
-
由 Aurelius84 提交于
* add unittest test=develop * add function cache test=develop
-
由 liym27 提交于
-
由 liym27 提交于
-
- 25 3月, 2020 2 次提交
-
-
由 Huihuang Zheng 提交于
This PR does exact the thing as the title. The reason is that we plan to develop 4 decorators "dygraph_to_static_code" "dygraph_to_static_program" "dygraph_to_static_func" "dygraph_to_static_output" The 4 decorators will emphasize different part when translating dygraph to static graph. Decorator name "dygraph_to_static_graph" is too big for the function it implements.
-
由 Huihuang Zheng 提交于
As the title, we add decorator "dygraph_to_static_code", and add related "get_code", "get_func", "get_output" for ProgramTranslator. Next step will be adding "dygraph_to_static_program"
-
- 24 3月, 2020 2 次提交
- 23 3月, 2020 1 次提交
-
-
由 Huihuang Zheng 提交于
1. Rename AutoTracer to ProgramTranslator 2. Rename cached_program to program_cache 3. Remove some functor style __call__ 4. Dict key should be string but not hash code of string
-
- 20 3月, 2020 1 次提交
-
-
由 Huihuang Zheng 提交于
As the title
-
- 19 3月, 2020 3 次提交
-
-
由 Aurelius84 提交于
-
由 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
-
- 18 3月, 2020 2 次提交
-
-
由 liym27 提交于
-
由 Aurelius84 提交于
* Support and/or in controlFlow if test=develop
-
- 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`
-
- 10 3月, 2020 1 次提交
-
-
由 Aurelius84 提交于
-
- 07 3月, 2020 1 次提交
-
-
由 liym27 提交于
-
- 06 3月, 2020 2 次提交
-
-
由 liym27 提交于
* support basic tensor.shape. * Support tensor.shape with dependencies.
-
由 Huihuang Zheng 提交于
1. copy.deepcopy in NameVisitor should be changed to copy.copy to make hash or set work 2. read_context should be type of gast.Load()/gast.AugLoad(), not gast.Load/gast.AugLoad
-
- 05 3月, 2020 1 次提交
-
-
由 Huihuang Zheng 提交于
Add basic support for while in translating dygraph to static 1. Analysis the variable liveness in class NameVisitor 2. Replace while key word using while_loop API
-
- 04 3月, 2020 2 次提交
-
-
由 Aurelius84 提交于
* Modify the way of inserting newly defined func_nodes test=develop
-
由 Aurelius84 提交于
-
- 28 2月, 2020 1 次提交
-
-
由 liym27 提交于
* change dygraph_to_static_output to dygraph_to_static_graph. test=develop * Remove duplicate code. test=develop * Follow comments from Liujie. test=develop * change dygraph_to_static_output to dygraph_to_static_graph. test=develop
-