Commit Graph

178 Commits (649868ffb262bdba89741eca93e7c7cb8632b9e2)

Author SHA1 Message Date
Huihuang Zheng 914558049f
Refine ProgramTranslator API English Doc for 2.0rc (#27849)
5 years ago
liym27 3a8bef1d41
[Dynamic-to-Static] Refine 2.0rc assign: paddle.nn.functional.assign (#27650)
5 years ago
Huihuang Zheng cc2fc93804
[Dy2stat] Refine Dy2stat APIs to 2.0rc (#27430)
5 years ago
Huihuang Zheng abb32bbccd
[Dy2stat] Fix lstm bug (#27631)
5 years ago
Aurelius84 fc9d80bc9e
[Dy2Stat]rename StaticLayer into StaticFunction (#27487)
5 years ago
Aurelius84 7ba6279a25
[Dy2stat] Refine error msg of @to_static if not in imperative mode (#27371)
5 years ago
liym27 ac82baa80d
[Dy2Stat-log] Add feature also_to_stdout and optimize log messages (#27285)
5 years ago
Huihuang Zheng d4b4357bc0
[Dy2stat] Change the Global Switch Name of ProgramTranslator for API 2.0 (#27203)
5 years ago
liym27 3e20ddf73d
[Dy2Stat - Error Handling] Fix bug and optimize dy2stat error. (#27225)
5 years ago
liym27 a1b640bc66
Fix test_origin_info to be compatible with PY3.8, because ast module is different in PY3.8 (#27201)
5 years ago
Aurelius84 252aeb1a46
[Dy2stat]Add naming rule if not specific InputSpec.name (#26997)
5 years ago
Aurelius84 35f53ecd93
[Dy2stat] Add descriptor cache for StaticLayer (#26987)
5 years ago
liym27 435ab2aa8a
Raise RuntimeError if run the callable object decorated by '@paddle.jit.to_static' not in dynamic mode. (#26750)
5 years ago
liym27 f9d39b4916
[Dy2Stat] Transforme api 'to_tensor' to 'assign'. (#26873)
5 years ago
liym27 61107aa6f1
[Dy2Stat-debugging] Fix bug: Returns True if the verbosity level set by the user is greater than or equal to the log level (#26858)
5 years ago
Aurelius84 b0111778b8
enhance error message (#26808)
5 years ago
Aurelius84 df0a22d98b
[Dy2stat]Fix Python Version compatibility of dict.iteritems (#26778)
5 years ago
liym27 b1f9ed6006
[Dy2Stat] Add debugging and logging mechanism for dygraph to static (#26457)
5 years ago
Aurelius84 f05613683f
[Dy2stat] Support InputSpec and Return callable class instance in @declarative (#25960)
5 years ago
Aurelius84 67d03bed70
Fix jit.to_static usage (#26682)
5 years ago
Huihuang Zheng e1245f5c84
[Dy2stat] change deprecated imp dependency to importlib, test=develop (#26453)
5 years ago
liym27 db272ca5ef
rename file to according to reviews. (#26236)
5 years ago
liym27 f3ea615673
[Dy2Stat] Fix bug: unwrap func in dy2Stat. (#26279)
5 years ago
liym27 1d730ffbf5
[Dy2Stat] Removes temporary files created during the transformation of dygraph to static graph. (#26150)
5 years ago
liym27 168ea22351
[Dy2Stat-ErrorMessage]Optimize error value to improve readability when error raised in runtime. (#25970)
5 years ago
liym27 12bf9d7168
[Dy2Stat-ErrorMessage]Enhance original error and create new exception (#25798)
5 years ago
Shibo Tao c8d0d1419b
add paddle.utils.deprecated. (#25912)
5 years ago
Aurelius84 8ec4af278d
【Dy2stat】Fix is_test switch incorrectly in PartialProgram (#25809)
5 years ago
liym27 452be8950a
[Dy2Stat-ErrorMessage] Add interface:create_origin_info_map and attach_origin_info for AST node (#25627)
5 years ago
Chen Weihang 23d1228c4d
remove ProgramTranslator.save_inference_model (#25740)
5 years ago
Huihuang Zheng 60da88540f
[Dy2stat] Modify print for dynamic type (#25612)
5 years ago
liym27 0f8dc611c8
[Dy2Static] Convert assert stmt with new function `convert_assert`. (#25551)
5 years ago
Aurelius84 cf3c51a6ad
[Dy2Stat] Remove op call stack in PartialProgram (#25420)
5 years ago
Chen Weihang 41d2247275
[Dy2static] Refactor ProgramTranslator save_inference_model API (#24989)
5 years ago
Zhen Wang 2989c012f2
[DygraphToStatic]Add cast transform for dygraph_to_static. (#25325)
5 years ago
Zhen Wang dc17ac9199
fix import fluid error in dygraph_to_static. test=develop (#25195)
5 years ago
Huihuang Zheng 5e8e6dad72
[Dy2stat] Support Various-Length Return Grammar in Dy2stat (#25249)
5 years ago
Aurelius84 02adf68dcc
[Dy2stat]Support buffers and register_buffer in Layer (#24888)
5 years ago
Huihuang Zheng 6f631a27c7
[Dy2stat] Add Basic Support for Grammar 'return' (#25176)
5 years ago
Aurelius84 38d2d13d8b
[Dy2stat] Add CycleGAN model for unitttest (#25072)
5 years ago
Aurelius84 e8134e873a
[Dy2stat]Refine caches of converting function (#25085)
5 years ago
Aurelius84 8d6de44012
Refine check_type Error Message for @declarative (#25098)
5 years ago
liym27 eb1c0901a6
[Dy2Stat]Remove unnecessary vars from gast.comprehension in LoopTransformer. (#25094)
5 years ago
liym27 db601f70cc
[Dy2Stat] Add test for dygraph seq2seq model. (#25054)
5 years ago
liym27 f16e277859
[Dy2Static]Convert var.shape stmt and Convert the return variables of Tensor-dependent 'if' staments to Tensor if it not (#24911)
5 years ago
liym27 2e238c6eed
[[Dy2Static]]convert for stmt and support variable loaded and created in loop(#24901)
5 years ago
liym27 a9dca5805a
[Dy2Static] Add convert_ifelse to run the transformed code dynamically (#24866)
5 years ago
Chen Weihang a1c1b59d48
[Dy2Static] Support for iter & enumerate VarBase (#24856)
5 years ago
liym27 5ea82e8a45
[Dy2Static]Support return variable created in only one of If.body or If.orelse (#24841)
5 years ago
liym27 001c9fcca2
[Dy2Static]Convert while stmt and convert logical_XX (#24799)
5 years ago
Chen Weihang 1f032c53d5
remove duplicate function, test=develop (#24849)
5 years ago
Aurelius84 8bbb829a03
[Dy2stat]Support nested input and output (#24752)
5 years ago
liym27 080d37a501
fix bug in LogicalOpTransformer: Create logic node recursively (#24785)
5 years ago
Aurelius84 40162227bb
Support save model in dygraph.guard test=develop (#24761)
5 years ago
liym27 a0846b627a
Remove target vars of gast.For from before_loop_vars or after_loop_vars (#24732)
5 years ago
Aurelius84 6db0e2b1a9
[Dy2stat] Support len syntax (#24638)
5 years ago
liym27 824572c144
[Dy2Stat]Support to transform sequence assignments and multi-target assignments to normal assignments (#24643)
5 years ago
Aurelius84 736d3acc24
[Dy2stat] Support lambda and enhance transformation of IfExpr (#24530)
5 years ago
liym27 b3ac1470c5
Support create LoDTensorArray and return LoDTensorArray in control flow (#24609)
5 years ago
Chen Weihang d26f581c58
fix some detail problems, test=develop (#24614)
5 years ago
Chen Weihang 03ba5b748d
[Dy2static] Add for enumerate Variable support (#24398)
5 years ago
Huihuang Zheng 5ff4535781
[Dy2Stat] Fix ProgramTranslator.save_inference_model API Doc (#24584)
5 years ago
Chen Weihang 897cec811a
[Dy2static] fix some print transformer problems (#24516)
5 years ago
Aurelius84 db0c1ea851
[Dy2stat] Fix function lookup bug in convert_call (#24567)
5 years ago
Huihuang Zheng 2d0f849e75
[Dy2Stat] Add assert for ProgramTranslator (#24492)
5 years ago
Aurelius84 100914ddbe
Fix bug with `if Tensor` in is_control_flow (#24433)
5 years ago
liym27 f9a4f9f4c4
Remove redundant code. test=develop (#24397)
5 years ago
Aurelius84 9bf70ed752
[dy2stat]Support save_inference_model in program_translator (#24353)
5 years ago
liym27 03f4684d76
[Dy2Stat] Add test for bert pretraining. (#24350)
5 years ago
Aurelius84 1ed8baf9c8
[dy2static] Support for static graph training with @declarative decorator (#24259)
5 years ago
liym27 ac9a7eeea4
[Dy2Stat]Support list pop (#24250)
5 years ago
liym27 e8869a907b
Fix bug in ProgramTranslator.get_output, convert all items into VarBase in nested list. (#24267)
5 years ago
Chen Weihang 9b851ba216
[dy2static] Add print transformer and unify print format (#24068)
5 years ago
liym27 2961a4f07d
[Dy2Stat] Optimize loop cond (#24049)
5 years ago
liym27 1507f77a18
Fix bug in convert_call because difference exists between python3 and python2. test=develop (#23966)
5 years ago
liym27 0b0adbf9b6
[dy2static]Support recursive call (#23900)
5 years ago
Huihuang Zheng 45e48c3c32
[Dy2stat] Add Test and Example Code for Different Access to ProgramTranslator and Fix Related Bug (#23958)
5 years ago
Huihuang Zheng 81c4def96a
[Dy2stat] Rename Dygraph To Static Decorators (#23880)
5 years ago
liym27 37ef7c1351
[dy2static]Fix a bug of is_dygraph_api and move BasicApiTransformer to a separate file(#23923)
5 years ago
Chen Weihang fccbc485f5
remove redundant visit func, test=develop (#23877)
5 years ago
Aurelius84 d265b16aed
Support transform two independent functions in dygraph_to_static_output (#23652)
5 years ago
Aurelius84 d1f9a26c95
Refine mechanism of calling outer function in dy2static (#23688)
5 years ago
liym27 f9c9d50e7e
Return VarBase of ProgramTranslator.get_output instead of numpy.ndarray. test=develop (#23663)
5 years ago
Aurelius84 d37cd74033
Polish set_optimizer Interface (#23588)
5 years ago
Huihuang Zheng 036121b731
[Dy2stat] Make loop_transformer supports class variable (#23478)
5 years ago
Aurelius84 4955c97ee8
Add unitTest for `Tensor==constant` for ifElse in dygraph2static (#23407)
5 years ago
Huihuang Zheng 1d4d89baf8
[Dy2stat] Add data_layer_not_check (#23351)
5 years ago
Huihuang Zheng 8814853d82
Remove Read-Only Basic Type Variable in loop_vars (#23299)
5 years ago
Aurelius84 9474d140de
Support Parameter type determination in StaticAnalysis (#23302)
5 years ago
Aurelius84 f8205ffa82
fix conflict var bug in loop_transformer test=develop (#23287)
5 years ago
Aurelius84 16e74f1185
fix is_controw_flow bug with `if Tensor.numpy()` (#23251)
5 years ago
Huihuang Zheng e5af90aa28
Add Decorator 'dygraph_to_static_program' and ProgramTranslator.save_inference_model (#23227)
5 years ago
Aurelius84 a647bcd355
Add convert_function_with_cache in dygraph_to_static_func (#23190)
5 years ago
liym27 af92630666
fix bug of loop_vars in loop_transformer.test=develop (#23180)
5 years ago
liym27 ebe4eab985
fix bug of ListTransformer in dygraph_to_static. test=develop (#23153)
5 years ago
Huihuang Zheng e9b18c7402
Rename Decorator "dygraph_to_static_graph" to "dygraph_to_static_func" (#23150)
5 years ago
Huihuang Zheng 05c00af5f1
Add dygraph_to_static_code and get_code in ProgramTranslator (#23162)
5 years ago
liym27 11f94cdce9
Improve function is_control_flow_to_transform. test=develop (#23109)
5 years ago
liym27 573d2faacd
fix bug in function `is_to_variable`. test=develop (#23147)
5 years ago
Huihuang Zheng 6fc6bb3e78
Refactoring Program Cache Related Code (#23118)
5 years ago