Commit Graph

63 Commits (a9520db24ef8b101514b0bcaff39dd359f72dcb7)

Author SHA1 Message Date
Aurelius84 100914ddbe
Fix bug with `if Tensor` in is_control_flow (#24433)
6 years ago
liym27 f9a4f9f4c4
Remove redundant code. test=develop (#24397)
6 years ago
Aurelius84 9bf70ed752
[dy2stat]Support save_inference_model in program_translator (#24353)
6 years ago
liym27 03f4684d76
[Dy2Stat] Add test for bert pretraining. (#24350)
6 years ago
Aurelius84 1ed8baf9c8
[dy2static] Support for static graph training with @declarative decorator (#24259)
6 years ago
liym27 ac9a7eeea4
[Dy2Stat]Support list pop (#24250)
6 years ago
liym27 e8869a907b
Fix bug in ProgramTranslator.get_output, convert all items into VarBase in nested list. (#24267)
6 years ago
Chen Weihang 9b851ba216
[dy2static] Add print transformer and unify print format (#24068)
6 years ago
liym27 2961a4f07d
[Dy2Stat] Optimize loop cond (#24049)
6 years ago
liym27 1507f77a18
Fix bug in convert_call because difference exists between python3 and python2. test=develop (#23966)
6 years ago
liym27 0b0adbf9b6
[dy2static]Support recursive call (#23900)
6 years ago
Huihuang Zheng 45e48c3c32
[Dy2stat] Add Test and Example Code for Different Access to ProgramTranslator and Fix Related Bug (#23958)
6 years ago
Huihuang Zheng 81c4def96a
[Dy2stat] Rename Dygraph To Static Decorators (#23880)
6 years ago
liym27 37ef7c1351
[dy2static]Fix a bug of is_dygraph_api and move BasicApiTransformer to a separate file(#23923)
6 years ago
Chen Weihang fccbc485f5
remove redundant visit func, test=develop (#23877)
6 years ago
Aurelius84 d265b16aed
Support transform two independent functions in dygraph_to_static_output (#23652)
6 years ago
Aurelius84 d1f9a26c95
Refine mechanism of calling outer function in dy2static (#23688)
6 years ago
liym27 f9c9d50e7e
Return VarBase of ProgramTranslator.get_output instead of numpy.ndarray. test=develop (#23663)
6 years ago
Aurelius84 d37cd74033
Polish set_optimizer Interface (#23588)
6 years ago
Huihuang Zheng 036121b731
[Dy2stat] Make loop_transformer supports class variable (#23478)
6 years ago
Aurelius84 4955c97ee8
Add unitTest for `Tensor==constant` for ifElse in dygraph2static (#23407)
6 years ago
Huihuang Zheng 1d4d89baf8
[Dy2stat] Add data_layer_not_check (#23351)
6 years ago
Huihuang Zheng 8814853d82
Remove Read-Only Basic Type Variable in loop_vars (#23299)
6 years ago
Aurelius84 9474d140de
Support Parameter type determination in StaticAnalysis (#23302)
6 years ago
Aurelius84 f8205ffa82
fix conflict var bug in loop_transformer test=develop (#23287)
6 years ago
Aurelius84 16e74f1185
fix is_controw_flow bug with `if Tensor.numpy()` (#23251)
6 years ago
Huihuang Zheng e5af90aa28
Add Decorator 'dygraph_to_static_program' and ProgramTranslator.save_inference_model (#23227)
6 years ago
Aurelius84 a647bcd355
Add convert_function_with_cache in dygraph_to_static_func (#23190)
6 years ago
liym27 af92630666
fix bug of loop_vars in loop_transformer.test=develop (#23180)
6 years ago
liym27 ebe4eab985
fix bug of ListTransformer in dygraph_to_static. test=develop (#23153)
6 years ago
Huihuang Zheng e9b18c7402
Rename Decorator "dygraph_to_static_graph" to "dygraph_to_static_func" (#23150)
6 years ago
Huihuang Zheng 05c00af5f1
Add dygraph_to_static_code and get_code in ProgramTranslator (#23162)
6 years ago
liym27 11f94cdce9
Improve function is_control_flow_to_transform. test=develop (#23109)
6 years ago
liym27 573d2faacd
fix bug in function `is_to_variable`. test=develop (#23147)
6 years ago
Huihuang Zheng 6fc6bb3e78
Refactoring Program Cache Related Code (#23118)
6 years ago
Huihuang Zheng d066d6f994
[Dy2Stat] Change layers.data to fluid.data and Test Var Created In Loop (#23103)
6 years ago
Aurelius84 26bc953b3f
Fix returned arguments in IfElse_fn test=develop (#23102)
6 years ago
Aurelius84 31fc3ab79a
Support to use external function (#23057)
6 years ago
Huihuang Zheng fb7b008acc
Add Support for Break and Continue in Dygraph to Static (#23067)
6 years ago
liym27 5a202af90b
Support slice write in dygraph_to_static. test=develop (#23055)
6 years ago
Aurelius84 2403362d06
BugFix for parsing Arguments and inserting funcs in IfElseTransormer (#23035)
6 years ago
liym27 4af491c2bb
Tensor.shape support control flow if/for/while and bugfix (#22866)
6 years ago
Aurelius84 ab473357a2
Support and/or in dygraph_to_static control_flow_if (#22967)
6 years ago
liym27 08e80d170b
Support list in control flow for dygraph_to_static (#22902)
6 years ago
Huihuang Zheng d7a7c5f0bf
Support Simple For Range Loop in Dygraph to Static (#22867)
6 years ago
Aurelius84 4ff2915d1f
Refine code of IfElseTransformer and rename unittest files (#22930)
6 years ago
Aurelius84 ba65e4ebef
support Tensor.shape in control_flow_if test=develop (#22916)
6 years ago
liym27 b290420fc4
fix bug in the transformation from to_variable to assign. test=develop (#22885)
6 years ago
liym27 4ea95b6fe5
Support Tensor.shape in dygraph_to_static (#22830)
6 years ago
Huihuang Zheng 0d463d3bf7
Fix NameVisitor bugs (#22847)
6 years ago