-
Notifications
You must be signed in to change notification settings - Fork 734
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
【Hackathon 5th No.7】为 Paddle 新增 apply API #6429
Conversation
感谢你贡献飞桨文档,文档预览构建中,Docs-New 跑完后即可预览,预览链接:http://preview-pr-6429.paddle-docs-preview.paddlepaddle.org.cn/documentation/docs/zh/api/index_cn.html |
@luotao1 涛姐麻烦了 |
docs/api/paddle/Tensor_cn.rst
Outdated
.. code-block:: python | ||
|
||
x = paddle.to_tensor([[0.3, 0.5, 0.1], | ||
[0.9, 0.9, 0.7], | ||
[0.4, 0.8, 0.2]]) | ||
f = lambda x: 3*x+2 | ||
y = x.apply(f) | ||
print(y) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
用copy-from的形式,中英文代码保持一致
.. code-block:: python | |
x = paddle.to_tensor([[0.3, 0.5, 0.1], | |
[0.9, 0.9, 0.7], | |
[0.4, 0.8, 0.2]]) | |
f = lambda x: 3*x+2 | |
y = x.apply(f) | |
print(y) | |
COPY-FROM: paddle.Tensor.apply |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@@ -625,7 +625,7 @@ | |||
梳理了`torch.Tensor.XX`类 API 的 PyTorch-PaddlePaddle API 映射列表。 | |||
|
|||
| 序号 | PyTorch API | PaddlePaddle API | 备注 | | |||
|-----| --- | --- | --- | | |||
-----|-----| --- | --- | --- | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
add apply api docs