Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace the numpy with paddle for the data generation in code; test=document_fix #42259

Merged

Conversation

liyongchao911
Copy link
Contributor

@liyongchao911 liyongchao911 commented Apr 26, 2022

PR types

Others

PR changes

Docs

Describe

  1. replace the numpy module with paddle.to_tensor for the data generation in the code example area.
    the following API affected:
  • multiplex(inputs, index, name=None):
  • reshape(x, shape, name=None):
  • take_along_axis(arr, indices, axis):
  • put_along_axis(arr, indices, values, axis, reduce='assign'):
  1. add anchor for the code example copy-from function, to align the en and cn docs
  2. name parameter annotation alignment

Copy link
Contributor

@zhiqiu zhiqiu left a comment

Choose a reason for hiding this comment

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

LGTM

@TCChenlong TCChenlong merged commit 30838aa into PaddlePaddle:develop Apr 26, 2022
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.

4 participants