Commit Graph

467 Commits (f13c3a9cd722ddd27f6c2da7669e82ce6a3585cd)

Author SHA1 Message Date
Chen Weihang 33ff833af2
fix loaded no params layer run error (#27241)
5 years ago
liym27 3e20ddf73d
[Dy2Stat - Error Handling] Fix bug and optimize dy2stat error. (#27225)
5 years ago
Chen Weihang ac8afe184e
use structured name in loaded dict (#27242)
5 years ago
Aurelius84 5e0dde02b2
[Dy2stat] support usage: to_static(model) (#27040)
5 years ago
Chen Weihang 5406b014c0
Refine jit.save implement to adapt InputSpec using cases (#26959)
5 years ago
ShenLiang 5bd84b22c4
revert divide (#27202)
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
Chen Weihang 4c70e31ab5
add save load to jit.all (#27131)
5 years ago
Chen Weihang c1a8868732
Change jit.save/load configs to config & update code examples (#27056)
5 years ago
Aurelius84 35f53ecd93
[Dy2stat] Add descriptor cache for StaticLayer (#26987)
5 years ago
Chen Weihang 9373cf5ae4
Add TranslatedLayer.program method to get program (#26961)
5 years ago
Chen Weihang 9cb57f94c6
Update set_dict method name & add aliases (#26700)
5 years ago
Chen Weihang 209273e605
Support load state dict form `inference model` format save result (#26718)
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
Yang Zhang 6129b0e246
Revert `no_grad` changes and add new implementation (#26826)
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
MRXLT 1f36d3cdcb
update optimizer (#26711)
5 years ago
Chen Weihang 28cb653145
Remove backend argument of init_parallel_env (#26773)
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
Zhen Wang f32ae272ec
Remove `sorted_sum_gradient_` form BasicEngine and PartialGradTask. (#26766)
5 years ago
Chen Weihang 31f422ae5e
Add interface to launch parallel dygraph by multiprocessing (#26044)
5 years ago
liym27 b1f9ed6006
[Dy2Stat] Add debugging and logging mechanism for dygraph to static (#26457)
5 years ago
Zhen Wang f9066e6a6f
Update the demo code and the doc of varbase.backward. (#26506)
5 years ago
Aurelius84 f05613683f
[Dy2stat] Support InputSpec and Return callable class instance in @declarative (#25960)
5 years ago
wanghuancoder 07e3b9a33b
api20, Bilinear add deprecated, and fix english doc (#26610)
5 years ago
Aurelius84 67d03bed70
Fix jit.to_static usage (#26682)
5 years ago
Huihuang Zheng 26d67414fd
Enrich English declarative Doc (#26538)
5 years ago
ceci3 f8dbd7a273
fix syncbn, test=develop (#26523)
5 years ago
yaoxuefeng d6e888cace
fix Flatten api test=develop (#26346)
5 years ago
wanghuancoder 90e6819cf2
fix engilsh document for api paddle.fluid.dygraph.enabled, test=develop, test=document_fix (#26271)
5 years ago
ShenLiang 0e81626081
add div, floor_div, remainder (#26562)
5 years ago
Zhen Wang c037d6253a
Update the demo of paddle.grad (#26498)
5 years ago
Chen Weihang c09de13ec4
Refine jit load model by extra_var_info (#26461)
5 years ago
Yang Zhang f6d20d565c
Update `no_grad` doc examples (#26481)
5 years ago
Zhou Wei ce7d5263e6
[2.0API]Bind method for tensor and Variable (#26416)
5 years ago
Huihuang Zheng e1245f5c84
[Dy2stat] change deprecated imp dependency to importlib, test=develop (#26453)
5 years ago
Chen Weihang 7c1ff38e01
Enhance add_parameter check for dygraph layer (#26188)
5 years ago
Chen Weihang a7cd61fdd1
fix DataParallel code samples, test=document_fix (#26423)
5 years ago
liym27 db272ca5ef
rename file to according to reviews. (#26236)
5 years ago
ceci3 56890dc729
Add SyncBatchNorm (#26032)
5 years ago
liym27 f3ea615673
[Dy2Stat] Fix bug: unwrap func in dy2Stat. (#26279)
5 years ago
Sylwester Fraczek abfdffa039
add use_mkldnn attribute to ops in dygraph (#25773)
5 years ago
ShenLiang fd0051b488
add set default dtype, get default dtype (#26006)
5 years ago
LielinJiang 9a6a4fbc04
Add children and named_children for Layer (#26289)
5 years ago
wangchaochaohu bb11cbc250
[API2.0] add Device api (set_device and get_device)(#26103)
5 years ago
Zhou Wei 6de463d3d1
expose and unify the Tensor concepts to the user (#25978)
5 years ago
Yang Zhang 617eb67f29
Upgrade `no_grad` decorator (#25472)
5 years ago
Leo Chen 2d95280e1f
Feature/Enable Auto-Mixed-Precision in dynamic graph (#24903)
5 years ago
Chen Weihang 838e36e9ed
Fix loaded variable suffix repeat error (#26169)
5 years ago
liym27 1d730ffbf5
[Dy2Stat] Removes temporary files created during the transformation of dygraph to static graph. (#26150)
5 years ago
pangyoki 2efcb481c8
Paddle-2.0 API directory migration (#25898)
5 years ago
Leo Chen 9c6112104e
Fix prelu for compatibility with saved model of old version (#26052)
5 years ago
liym27 168ea22351
[Dy2Stat-ErrorMessage]Optimize error value to improve readability when error raised in runtime. (#25970)
5 years ago
Chen Weihang 3eee0467fe
Add limit support for load_dygraph loading jit.save result (#25935)
5 years ago
liym27 12bf9d7168
[Dy2Stat-ErrorMessage]Enhance original error and create new exception (#25798)
5 years ago
yaoxuefeng 224620071b
add new flatten op test=develop (#25393)
5 years ago
Shibo Tao c8d0d1419b
add paddle.utils.deprecated. (#25912)
5 years ago
LielinJiang 948bc8b7bb
Add apply for Layer (#25812)
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 b3f58d3086
TracedLayer Error Message Enhancement (#25734)
5 years ago
Zhen Wang cea5086853
Fix the double grad bug for the star gan. (#25655)
5 years ago
Chen Weihang e8caffbb4a
fix jit.save input_spec type change problem (#25683)
5 years ago
qingqing01 b5f8784cab
Refine Model of high level API (#25559)
5 years ago
Huihuang Zheng 60da88540f
[Dy2stat] Modify print for dynamic type (#25612)
5 years ago
Zhou Wei 1ab60544f2
windows CI scripts for xly,test=develop,test=win (#25533)
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
Zhou Wei 914ff10a8f
fix state dict to save/load learning rate scheduler (#25403)
5 years ago
Zhou Wei 93ad339450
add new API:LambdaDecay,test=develop (#24801)
5 years ago
Leo Chen 1e897f66ee
Refine __str__ of VarBase and ParamBase, test=develop (#25345)
5 years ago
ceci3 52be62c5ae
fix instance norm in dy (#24717)
5 years ago
Zhen Wang 2989c012f2
[DygraphToStatic]Add cast transform for dygraph_to_static. (#25325)
5 years ago
Zhou Wei b555378e18
fix Layer.__dir__ to show the parameters/sublayers/buffers/attr/method of the Layer (#25197)
5 years ago
Zhou Wei 8de89e67e9
support tuple/list init for VarBase (#25231)
5 years ago
Zhen Wang dc17ac9199
fix import fluid error in dygraph_to_static. test=develop (#25195)
5 years ago
Zhou Wei c701588b14
add base class of LearningRateEpochDecay, and API: MultiStepDecay, and API: StepDecay (#24821)
5 years ago
Huihuang Zheng 5e8e6dad72
[Dy2stat] Support Various-Length Return Grammar in Dy2stat (#25249)
5 years ago
hong dbc3fd5eb4
fix LinearLrWarmup bug; test=develop (#24913)
5 years ago
Aurelius84 02adf68dcc
[Dy2stat]Support buffers and register_buffer in Layer (#24888)
6 years ago
Huihuang Zheng 6f631a27c7
[Dy2stat] Add Basic Support for Grammar 'return' (#25176)
6 years ago
Aurelius84 38d2d13d8b
[Dy2stat] Add CycleGAN model for unitttest (#25072)
6 years ago
Zhou Wei a7cf562447
fix sample code error of fluid.dygraph.NaturalExpDecay,test=develop (#25092)
6 years ago
Aurelius84 e8134e873a
[Dy2stat]Refine caches of converting function (#25085)
6 years ago
Aurelius84 8d6de44012
Refine check_type Error Message for @declarative (#25098)
6 years ago
liym27 eb1c0901a6
[Dy2Stat]Remove unnecessary vars from gast.comprehension in LoopTransformer. (#25094)
6 years ago
liym27 db601f70cc
[Dy2Stat] Add test for dygraph seq2seq model. (#25054)
6 years ago
Leo Chen fa657b3dbb
fix bug of prelu when rank not equal 4, test=develop (#25067)
6 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)
6 years ago
Leo Chen bfa46c38d5
bn supports reverse_space, test=develop (#24988)
6 years ago
liym27 2e238c6eed
[[Dy2Static]]convert for stmt and support variable loaded and created in loop(#24901)
6 years ago
liym27 a9dca5805a
[Dy2Static] Add convert_ifelse to run the transformed code dynamically (#24866)
6 years ago
Chen Weihang 4a702ef361
Support SelelctedRows allreduce in multi-cards imperative mode (#24690)
6 years ago
Chen Weihang a1c1b59d48
[Dy2Static] Support for iter & enumerate VarBase (#24856)
6 years ago
liym27 5ea82e8a45
[Dy2Static]Support return variable created in only one of If.body or If.orelse (#24841)
6 years ago
liym27 001c9fcca2
[Dy2Static]Convert while stmt and convert logical_XX (#24799)
6 years ago
Chen Weihang 1f032c53d5
remove duplicate function, test=develop (#24849)
6 years ago
Aurelius84 8bbb829a03
[Dy2stat]Support nested input and output (#24752)
6 years ago
liym27 080d37a501
fix bug in LogicalOpTransformer: Create logic node recursively (#24785)
6 years ago
Zhou Wei 98da8a295d
add new learing rate strategy to reduce lr when loss reach on plateau (#24322)
6 years ago
Aurelius84 40162227bb
Support save model in dygraph.guard test=develop (#24761)
6 years ago
Leo Chen 92e256a86a
Fix bug of different dtype in dygraph math_op_patch, test=develop (#24740)
6 years ago
liym27 a0846b627a
Remove target vars of gast.For from before_loop_vars or after_loop_vars (#24732)
6 years ago
Aurelius84 6db0e2b1a9
[Dy2stat] Support len syntax (#24638)
6 years ago
Leo Chen 9fd1aad6e7
Support NHWC in Pool2D, test=develop (#24240)
6 years ago
liym27 824572c144
[Dy2Stat]Support to transform sequence assignments and multi-target assignments to normal assignments (#24643)
6 years ago
Leo Chen 9c9e635c00
support tensor to varbase, test=develop (#24660)
6 years ago
Chen Weihang fa846da53e
Append scale for static runner outputs (#24627)
6 years ago
Aurelius84 736d3acc24
[Dy2stat] Support lambda and enhance transformation of IfExpr (#24530)
6 years ago
liym27 b3ac1470c5
Support create LoDTensorArray and return LoDTensorArray in control flow (#24609)
6 years ago
Chen Weihang d26f581c58
fix some detail problems, test=develop (#24614)
6 years ago
Chen Weihang 03ba5b748d
[Dy2static] Add for enumerate Variable support (#24398)
6 years ago
Huihuang Zheng 5ff4535781
[Dy2Stat] Fix ProgramTranslator.save_inference_model API Doc (#24584)
6 years ago
Chen Weihang 897cec811a
[Dy2static] fix some print transformer problems (#24516)
6 years ago
Aurelius84 db0c1ea851
[Dy2stat] Fix function lookup bug in convert_call (#24567)
6 years ago
Cindy Cai 86ca31ab58
English API Docs Optimization Part 1 (#24536)
6 years ago
Huihuang Zheng 2d0f849e75
[Dy2Stat] Add assert for ProgramTranslator (#24492)
6 years ago
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
hong 6d8dcc7407
Fix np ndarray mul varbase (#24331)
6 years ago
hong 5f65d9d58c
Fix dygraph exit issue (#24347)
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
Xing Wu f79526c21c
Fix dygraph rnn doc (#24148)
6 years ago
liym27 e8869a907b
Fix bug in ProgramTranslator.get_output, convert all items into VarBase in nested list. (#24267)
6 years ago
Leo Chen 381492fca3
add try finally, test=develop (#24243)
6 years ago
zhongpu 61d19a8e1c
fix if logic in dygraph, test=develop (#24208)
6 years ago
Chen Weihang 9b851ba216
[dy2static] Add print transformer and unify print format (#24068)
6 years ago
Chen Weihang 9b3086cfb7
Fix some problems in StaticModelRunner (#24082)
6 years ago
qingqing01 b059fb955d
Add trainable_statistics in attr for batch_norm. (#24072)
6 years ago
liym27 2961a4f07d
[Dy2Stat] Optimize loop cond (#24049)
6 years ago
Xing Wu f6e8bf0d24
update cudnn rnn weights, test=develop (#23929)
6 years ago
Yibing Liu 720d18990c
Init complex number neural network (#24018)
6 years ago
wawltor 5c669ad1c2
Add the support dygraph out attribute for the op of mm in api2.0 (#23978)
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
Chen Weihang 5b97b8556e
remove train eval set in static runner, test=develop (#23834)
6 years ago
songyouwei 8f63a3ecff
fix no_grad argspec (#23790)
6 years ago
Xing Wu 840ac2b302
Cudnn rnn layers api (#23390)
6 years ago