- 26 3月, 2020 5 次提交
-
-
由 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
-
由 Aurelius84 提交于
* Add parameter(learning_rate) in NoamDecay test=develop
-
由 liym27 提交于
-
由 liym27 提交于
-
- 25 3月, 2020 3 次提交
-
-
由 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"
-
由 songyouwei 提交于
test=develop
-
- 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 2 次提交
-
-
由 Zeng Jinle 提交于
* add double grad implementation for dygraph, test=develop * polish code, add uts, test=develop * fix place bug, test=develop * polish codes, add more uts for coverages, test=develop * add no_grad_set, test=develop * add star gan ut, test=develop * follow comments, test=develop
-
由 Huihuang Zheng 提交于
As the title
-
- 19 3月, 2020 4 次提交
-
-
由 songyouwei 提交于
* move __getitem__ to cpp * bug fix * add type check and gil release * support negative step with omitted ends test=develop * code refine test=develop * bug fix test=develop * slice always return different pyobj test=develop
-
由 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 2 次提交
-
-
由 Chen Weihang 提交于
* add dygraph parallel env doc, test=develop * polish details, test=develop, test=document_fix * fix examples error in other apis, test=develop * fix more example error in other api, test=develop * add white list for gpu examples, test=develop, test=document_fix
-
由 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 提交于
-
- 09 3月, 2020 1 次提交
-
-
由 Zeng Jinle 提交于
* refine grad maker, test=develop * refactor tracer stage 1, test=develop * merge develop to solve conflict third times, test=develop
-
- 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 提交于
-
- 03 3月, 2020 1 次提交
-
-
由 songyouwei 提交于
* functional dygraph enable/disable test=develop * use context manager instead test=develop * refine sample code test=develop * rename api & expose to fluid test=develop * fix sample code test=develop
-
- 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
-
- 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
-
- 26 2月, 2020 1 次提交
-
-
由 Huihuang Zheng 提交于
1. Considering functions, I have to change the node type from single value to a set. Because python function is allowed to return different types. The set represent all possible types 2. I added scope_name and scope_type for AstVarScope, because in python functions, variable may have different scope. For example: ``` a = 3 def foo(b): a = 9 return a + b ``` the `a` in `foo` is different to the `a` out of `foo`. Similar to class field. The scope_name will help me to know the function name when static analysis finds a `return` sentence.
-
- 24 2月, 2020 2 次提交
-
-
由 Aurelius84 提交于
* add is_control_flow_if test=develop
-
由 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.
-
- 23 2月, 2020 1 次提交
-
-
由 tianshuo78520a 提交于
-