-
Notifications
You must be signed in to change notification settings - Fork 762
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
映射文档 No.51 - 60 #5919
映射文档 No.51 - 60 #5919
Conversation
感谢你贡献飞桨文档,文档预览构建中,Docs-New 跑完后即可预览,预览链接:http://preview-pr-5919.paddle-docs-preview.paddlepaddle.org.cn/documentation/docs/zh/api/index_cn.html |
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.
全局将paddle暂无转写方式
替换为paddle无此参数,暂无转写方式
吧,和其他文件保持一致
docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.backward.md
Outdated
Show resolved
Hide resolved
...guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.exponential_.md
Outdated
Show resolved
Hide resolved
.../guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.multinomial.md
Outdated
Show resolved
Hide resolved
.../guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.multinomial.md
Outdated
Show resolved
Hide resolved
docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.norm.md
Outdated
Show resolved
Hide resolved
...el_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.log_softmax.md
Outdated
Show resolved
Hide resolved
...es/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.MultiLabelSoftMarginLoss.md
Outdated
Show resolved
Hide resolved
docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.MultiheadAttention.md
Outdated
Show resolved
Hide resolved
docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.RNNBase.md
Outdated
Show resolved
Hide resolved
docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.TripletMarginLoss.md
Outdated
Show resolved
Hide resolved
docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.norm.md
Outdated
Show resolved
Hide resolved
...des/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.celu.md
Outdated
Show resolved
Hide resolved
...ides/model_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.elu.md
Outdated
Show resolved
Hide resolved
...del_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.leaky_relu.md
Outdated
Show resolved
Hide resolved
...el_convert/convert_from_pytorch/api_difference/functional/torch.nn.functional.log_softmax.md
Outdated
Show resolved
Hide resolved
docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Threshold.md
Outdated
Show resolved
Hide resolved
docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Transformer.md
Outdated
Show resolved
Hide resolved
docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.Transformer.md
Outdated
Show resolved
Hide resolved
...des/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.TransformerEncoderLayer.md
Outdated
Show resolved
Hide resolved
...des/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.TransformerEncoderLayer.md
Outdated
Show resolved
Hide resolved
paddle.nn.RNNCellBase(name_scope=None, dtype='float32') | ||
``` | ||
|
||
需要调用 get_initial_states(batch_ref,shape=None,dtype=None,init_value=0.,batch_dim_idx=0) 生成初始状态。 |
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.
RNNCellBase 不能匹配,修改为匹配paddle.nn.SimpleRNN
### [paddle.DataParallel](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/DataParallel_cn.html) | ||
|
||
```python | ||
paddle.DataParallel(layers, strategy=None, comm_buffer_size=25, last_comm_buffer_size=1, find_unused_parameters=False) |
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.
这两个参数差异比较大,是还需要其他的一些操作吗,比如rnnbase那样
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.
文档中没有说明其他操作
docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.GRUCell.md
Outdated
Show resolved
Hide resolved
docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.LSTMCell.md
Outdated
Show resolved
Hide resolved
docs/guides/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.RNN.md
Outdated
Show resolved
Hide resolved
...des/model_convert/convert_from_pytorch/api_difference/nn/torch.nn.TransformerDecoderLayer.md
Outdated
Show resolved
Hide resolved
你好,请修复一下冲突 |
已修改冲突 |
docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.half.md
Outdated
Show resolved
Hide resolved
docs/guides/model_convert/convert_from_pytorch/api_difference/Tensor/torch.Tensor.long.md
Outdated
Show resolved
Hide resolved
另外,请处理一下冲突 |
已修改 |
torch.nn.RNNBase(mode, input_size, hidden_size, num_layers=1, bias=True, batch_first=False, dropout=0.0, bidirectional=False, proj_size=0, device=None, dtype=None) | ||
``` | ||
|
||
### [paddle.nn.SimpleRNN](https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/nn/SimpleRNN_cn.html) |
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.
刚看了下,这个对应paddle.nn.RNNBase更好,SimpleRNN只是其一种mode
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.
没有 paddle.nn.RNNBase,是RNNCellBase
https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/nn/RNNCellBase_cn.html
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.
paddle.nn.layer.rnn.RNNBase 没有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.
为啥没有paddle.nn.RNNBase呢,源码里是有paddle.nn.RNNBase的,以代码为主
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
#5691
映射文档 No.51, 52, 53, 55, 56, 58, 60
paddle.nn.functional.tanh paddle无文档
torch.Tensor.eig pytorch无文档
paddle.Tensor.nan_to_num paddle无文档
torch.Tensor.qr paddle无文档
部分API未添加为已有文档