* add legacy_api.yaml * set merged_momentum inplace only * support inplace optional<vector<tensor>> * add dygraph_mode api * add merged_adam yaml * add merged_adam python api * change testcase of merged_adam and adam * fix import of test_merged_adam_op