Commit Graph

506 Commits (develop)

Author SHA1 Message Date
Chen Weihang 9373cf5ae4
Add TranslatedLayer.program method to get program (#26961)
6 years ago
Chen Weihang 9cb57f94c6
Update set_dict method name & add aliases (#26700)
6 years ago
Chen Weihang 209273e605
Support load state dict form `inference model` format save result (#26718)
6 years ago
liym27 435ab2aa8a
Raise RuntimeError if run the callable object decorated by '@paddle.jit.to_static' not in dynamic mode. (#26750)
6 years ago
liym27 f9d39b4916
[Dy2Stat] Transforme api 'to_tensor' to 'assign'. (#26873)
6 years ago
Yang Zhang 6129b0e246
Revert `no_grad` changes and add new implementation (#26826)
6 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)
6 years ago
MRXLT 1f36d3cdcb
update optimizer (#26711)
6 years ago
Chen Weihang 28cb653145
Remove backend argument of init_parallel_env (#26773)
6 years ago
Aurelius84 b0111778b8
enhance error message (#26808)
6 years ago
Aurelius84 df0a22d98b
[Dy2stat]Fix Python Version compatibility of dict.iteritems (#26778)
6 years ago
Zhen Wang f32ae272ec
Remove `sorted_sum_gradient_` form BasicEngine and PartialGradTask. (#26766)
6 years ago
Chen Weihang 31f422ae5e
Add interface to launch parallel dygraph by multiprocessing (#26044)
6 years ago
liym27 b1f9ed6006
[Dy2Stat] Add debugging and logging mechanism for dygraph to static (#26457)
6 years ago
Zhen Wang f9066e6a6f
Update the demo code and the doc of varbase.backward. (#26506)
6 years ago
Aurelius84 f05613683f
[Dy2stat] Support InputSpec and Return callable class instance in @declarative (#25960)
6 years ago
wanghuancoder 07e3b9a33b
api20, Bilinear add deprecated, and fix english doc (#26610)
6 years ago
Aurelius84 67d03bed70
Fix jit.to_static usage (#26682)
6 years ago
Huihuang Zheng 26d67414fd
Enrich English declarative Doc (#26538)
6 years ago
ceci3 f8dbd7a273
fix syncbn, test=develop (#26523)
6 years ago
yaoxuefeng d6e888cace
fix Flatten api test=develop (#26346)
6 years ago
wanghuancoder 90e6819cf2
fix engilsh document for api paddle.fluid.dygraph.enabled, test=develop, test=document_fix (#26271)
6 years ago
ShenLiang 0e81626081
add div, floor_div, remainder (#26562)
6 years ago
Zhen Wang c037d6253a
Update the demo of paddle.grad (#26498)
6 years ago
Chen Weihang c09de13ec4
Refine jit load model by extra_var_info (#26461)
6 years ago
Yang Zhang f6d20d565c
Update `no_grad` doc examples (#26481)
6 years ago
Zhou Wei ce7d5263e6
[2.0API]Bind method for tensor and Variable (#26416)
6 years ago
Huihuang Zheng e1245f5c84
[Dy2stat] change deprecated imp dependency to importlib, test=develop (#26453)
6 years ago
Chen Weihang 7c1ff38e01
Enhance add_parameter check for dygraph layer (#26188)
6 years ago
Chen Weihang a7cd61fdd1
fix DataParallel code samples, test=document_fix (#26423)
6 years ago
liym27 db272ca5ef
rename file to according to reviews. (#26236)
6 years ago
ceci3 56890dc729
Add SyncBatchNorm (#26032)
6 years ago
liym27 f3ea615673
[Dy2Stat] Fix bug: unwrap func in dy2Stat. (#26279)
6 years ago
Sylwester Fraczek abfdffa039
add use_mkldnn attribute to ops in dygraph (#25773)
6 years ago
ShenLiang fd0051b488
add set default dtype, get default dtype (#26006)
6 years ago
LielinJiang 9a6a4fbc04
Add children and named_children for Layer (#26289)
6 years ago
wangchaochaohu bb11cbc250
[API2.0] add Device api (set_device and get_device)(#26103)
6 years ago
Zhou Wei 6de463d3d1
expose and unify the Tensor concepts to the user (#25978)
6 years ago
Yang Zhang 617eb67f29
Upgrade `no_grad` decorator (#25472)
6 years ago
Leo Chen 2d95280e1f
Feature/Enable Auto-Mixed-Precision in dynamic graph (#24903)
6 years ago
Chen Weihang 838e36e9ed
Fix loaded variable suffix repeat error (#26169)
6 years ago
liym27 1d730ffbf5
[Dy2Stat] Removes temporary files created during the transformation of dygraph to static graph. (#26150)
6 years ago
pangyoki 2efcb481c8
Paddle-2.0 API directory migration (#25898)
6 years ago
Leo Chen 9c6112104e
Fix prelu for compatibility with saved model of old version (#26052)
6 years ago
liym27 168ea22351
[Dy2Stat-ErrorMessage]Optimize error value to improve readability when error raised in runtime. (#25970)
6 years ago
Chen Weihang 3eee0467fe
Add limit support for load_dygraph loading jit.save result (#25935)
6 years ago
liym27 12bf9d7168
[Dy2Stat-ErrorMessage]Enhance original error and create new exception (#25798)
6 years ago
yaoxuefeng 224620071b
add new flatten op test=develop (#25393)
6 years ago
Shibo Tao c8d0d1419b
add paddle.utils.deprecated. (#25912)
6 years ago
LielinJiang 948bc8b7bb
Add apply for Layer (#25812)
6 years ago
Aurelius84 8ec4af278d
【Dy2stat】Fix is_test switch incorrectly in PartialProgram (#25809)
6 years ago
liym27 452be8950a
[Dy2Stat-ErrorMessage] Add interface:create_origin_info_map and attach_origin_info for AST node (#25627)
6 years ago
Chen Weihang 23d1228c4d
remove ProgramTranslator.save_inference_model (#25740)
6 years ago
Huihuang Zheng b3f58d3086
TracedLayer Error Message Enhancement (#25734)
6 years ago
Zhen Wang cea5086853
Fix the double grad bug for the star gan. (#25655)
6 years ago
Chen Weihang e8caffbb4a
fix jit.save input_spec type change problem (#25683)
6 years ago
qingqing01 b5f8784cab
Refine Model of high level API (#25559)
6 years ago
Huihuang Zheng 60da88540f
[Dy2stat] Modify print for dynamic type (#25612)
6 years ago
Zhou Wei 1ab60544f2
windows CI scripts for xly,test=develop,test=win (#25533)
6 years ago
liym27 0f8dc611c8
[Dy2Static] Convert assert stmt with new function `convert_assert`. (#25551)
6 years ago
Aurelius84 cf3c51a6ad
[Dy2Stat] Remove op call stack in PartialProgram (#25420)
6 years ago
Chen Weihang 41d2247275
[Dy2static] Refactor ProgramTranslator save_inference_model API (#24989)
6 years ago
Zhou Wei 914ff10a8f
fix state dict to save/load learning rate scheduler (#25403)
6 years ago
Zhou Wei 93ad339450
add new API:LambdaDecay,test=develop (#24801)
6 years ago
Leo Chen 1e897f66ee
Refine __str__ of VarBase and ParamBase, test=develop (#25345)
6 years ago
ceci3 52be62c5ae
fix instance norm in dy (#24717)
6 years ago
Zhen Wang 2989c012f2
[DygraphToStatic]Add cast transform for dygraph_to_static. (#25325)
6 years ago
Zhou Wei b555378e18
fix Layer.__dir__ to show the parameters/sublayers/buffers/attr/method of the Layer (#25197)
6 years ago
Zhou Wei 8de89e67e9
support tuple/list init for VarBase (#25231)
6 years ago
Zhen Wang dc17ac9199
fix import fluid error in dygraph_to_static. test=develop (#25195)
6 years ago
Zhou Wei c701588b14
add base class of LearningRateEpochDecay, and API: MultiStepDecay, and API: StepDecay (#24821)
6 years ago
Huihuang Zheng 5e8e6dad72
[Dy2stat] Support Various-Length Return Grammar in Dy2stat (#25249)
6 years ago
hong dbc3fd5eb4
fix LinearLrWarmup bug; test=develop (#24913)
6 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
zhongpu 2beb6eacba
fix if logic in dygraph (#23728)
6 years ago
Aurelius84 d265b16aed
Support transform two independent functions in dygraph_to_static_output (#23652)
6 years ago
Chen Weihang a2315d37cf
remove logging setting, test=develop (#23715)
6 years ago
songyouwei 0307393721
API(PRelu) error message enhancement (#23539)
6 years ago
songyouwei cae9340ec8
API(GRUUnit) error message enhancement (#23535)
6 years ago
songyouwei 475de6da22
API(Embedding) error message enhancement (#23533)
6 years ago
songyouwei dc1901f48e
API(BilinearTensorProduct) error message enhancement (#23528)
6 years ago
Aurelius84 d1f9a26c95
Refine mechanism of calling outer function in dy2static (#23688)
6 years ago
songyouwei 4d0efee4f4
Linear revert to matmul op (#23654)
6 years ago
silingtong123 f9e2a27963
error message of SpectralNorm OP enhancement (#23516)
6 years ago
zhongpu 076dcdfde9
add instance_norm op for dygraph (#23362)
6 years ago
songyouwei cb36478a36
add LayerList insert and extend (#23377)
6 years ago
Zhou Wei 1f83069117
API(to_variable/save_dygraph) error message enhancement(#23683)
6 years ago
zhongpu 60d1f98a7d
error message enhancement for Pool2D, test=develop (#23607)
6 years ago
liym27 f9c9d50e7e
Return VarBase of ProgramTranslator.get_output instead of numpy.ndarray. test=develop (#23663)
6 years ago
zhongpu 01a78323a7
API/OP (Conv2DTranspose) error message enhancement (#23590)
6 years ago
Leo Chen 795a0a9ab4
fix a typo, test=develop (#23685)
6 years ago
silingtong123 cec234b1aa
test=develop, error message of tree_conv OP enhancement (#23574)
6 years ago
silingtong123 7277df47bb
error message of NCE API enhancement (#23544)
6 years ago
songyouwei a1a95f8108
fix no_grad signature (#23600)
6 years ago
zhongpu d40c52403d
error message enhancement for Linear, test=develop (#23595)
6 years ago
zhongpu c1c8c7e431
error message enhancement for Conv2D, test=develop (#23561)
6 years ago
songyouwei b11340a437
support Layer level train/eval mode (#22463)
6 years ago
Aurelius84 d37cd74033
Polish set_optimizer Interface (#23588)
6 years ago
Chen Weihang f301eb7f34
api dygraph layer norm input check, test=develop (#23534)
6 years ago
Feiyu Chan 078dd05b73
add Conv2D/Conv2DTranspose/Conv3D/Conv3DTranspose in paddle.nn.layer (#23488)
6 years ago
songyouwei c435110a3f
support no_grad inplace operating (#22522)
6 years ago
Chen Weihang d349a622f0
api dygraph batch norm type check, test=develop (#23525)
6 years ago
zhongpu 8d95a10906
fix if logic in dygraph, test=develop (#23512)
6 years ago
zhongpu ea6a251c0b
fix sample code, test=develop (#23448)
6 years ago
Chen Weihang 75bd350710
Implement StaticModelRunner to support dygraph fine-tune static graph pre-training model (#23171)
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
zhongpu 7ca836d3da
support if logic for Variable in dygraph (#22892)
6 years ago
zhongpu 166a1ae902
support forward hook for dygraph (#22443)
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
hong 420944e514
enhance load dygraph; test=develop (#23167)
6 years ago
Leo Chen 488b2387e2
Feature/expand params in auto-generated pybind functions for dygraph operators (#23181)
6 years ago
Aurelius84 9474d140de
Support Parameter type determination in StaticAnalysis (#23302)
6 years ago
zhongpu dc24f38a9f
support math operator for variable (#23063)
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
Zeng Jinle 8bfd62ffb7
Expose dygraph.grad api (#23124)
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
Aurelius84 d6f72c4fcc
Add parameter(learning_rate) in NoamDecay (#23156)
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
songyouwei 2787041246
bug fix (#23193)
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
Zeng Jinle a31d7328b7
Add dygraph double grad implementation (#22939)
6 years ago
Huihuang Zheng d066d6f994
[Dy2Stat] Change layers.data to fluid.data and Test Var Created In Loop (#23103)
6 years ago
songyouwei 2e2da7124b
high-performance dygraph slice (#22879)
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