Skip to content

fix API python example#17226

Merged
heavengate merged 10 commits intoPaddlePaddle:developfrom
heavengate:fix_api_example
May 23, 2019
Merged

fix API python example#17226
heavengate merged 10 commits intoPaddlePaddle:developfrom
heavengate:fix_api_example

Conversation

@heavengate
Copy link
Contributor

@heavengate heavengate commented May 6, 2019

Fix api example python code in Doc:

  1. adaptive_pool3d
  2. grid_sampler
  3. spectral_norm
  4. expotential_decay
  5. inverse_time_decay
  6. natural_exe_decay (add example)

NOTE: API append_LARS has been deleted
adap_pool_1
adap_pool_2
grid_sampler_1
grid_sampler_2
spectral_norm
expo_decay
inverse_time_decay
natural_exp_decay

@heavengate heavengate requested a review from shanyi15 May 6, 2019 06:27
@heavengate heavengate changed the title Fix api example Fix API document python example May 6, 2019
@heavengate heavengate changed the title Fix API document python example API文档代码实力新增&修复 May 6, 2019
@heavengate heavengate changed the title API文档代码实力新增&修复 API文档代码示例新增&修复 May 6, 2019
@heavengate heavengate changed the title API文档代码示例新增&修复 fix API python example May 7, 2019
@heavengate heavengate requested a review from XiaoguangHu01 May 8, 2019 12:40
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add:

import paddle.fluid as fluid

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. Thanks

@heavengate heavengate merged commit cf60e5a into PaddlePaddle:develop May 23, 2019
@heavengate heavengate deleted the fix_api_example branch May 23, 2019 08:50
ysh329 pushed a commit to benchmark-tools/Paddle that referenced this pull request May 24, 2019
* fix api example. test=develop

* fix API.spec. test=develop

* fix spectral_norm format. test=develpp

* merge develop

* add import. test=develop

* fix indent. test=develop

* fix indent. test=develop

* add import fluid. test=develop

	modified:   paddle/fluid/API.spec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants