Closed RedContritio closed 2 months ago
感谢你贡献飞桨文档,文档预览构建中,Docs-New 跑完后即可预览,预览链接:http://preview-pr-6672.paddle-docs-preview.paddlepaddle.org.cn/documentation/docs/zh/api/index_cn.html 预览工具的更多说明,请参考:飞桨文档预览工具
在映射主目录中添加 api 别名表格
该表格为静态数据,数据依赖 PaConvert,更新时需要手动更新。
表格更新方法:
- 将 PaConvert 的
api_alias_mapping.json
文件复制到validate_mapping_in_api_difference.py
所在目录中- 执行
validate_mapping_in_api_difference.py
,基于 json 生成pytorch_api_mapping_cn.tmp.md
文件- 在
pytorch_api_mapping_cn.tmp.md
找到对应的## alias
部分,复制表格到pytorch_api_mapping_cn.md
中,完成更新。- 缺失 API:别名和本名都不存在文档的 API
Alias Warning: api
torch.Tensor.atan2_
have no mapping doc, failed to reference from aliastorch.Tensor.arctan2_
Alias Warning: apitorch.amp.autocast_mode.autocast
have no mapping doc, failed to reference from aliastorch.amp.autocast
Alias Warning: apitorch.celu_
have no mapping doc, failed to reference from aliastorch.nn.functional.celu_
Alias Warning: apitorch.channel_shuffle
have no mapping doc, failed to reference from aliastorch.nn.functional.channel_shuffle
Alias Warning: apitorch.conv_tbc
have no mapping doc, failed to reference from aliastorch.nn.functional.conv_tbc
Alias Warning: apitorch.distributions.binomial.Binomial
have no mapping doc, failed to reference from aliastorch.distributions.Binomial
Alias Warning: apitorch.distributions.continuous_bernoulli.ContinuousBernoulli
have no mapping doc, failed to reference from aliastorch.distributions.ContinuousBernoulli
Alias Warning: apitorch.distributions.exponential.Exponential
have no mapping doc, failed to reference from aliastorch.distributions.Exponential
Alias Warning: apitorch.distributions.multivariate_normal.MultivariateNormal
have no mapping doc, failed to reference from aliastorch.distributions.MultivariateNormal
Alias Warning: apitorch.distributions.one_hot_categorical.OneHotCategorical
have no mapping doc, failed to reference from aliastorch.distributions.OneHotCategorical
Alias Warning: apitorch.distributions.transforms.CatTransform
have no mapping doc, failed to reference from aliastorch.distributions.CatTransform
Alias Warning: apitorch.distributions.transforms.CumulativeDistributionTransform
have no mapping doc, failed to reference from aliastorch.distributions.CumulativeDistributionTransform
Alias Warning: apitorch.distributions.transforms.SoftplusTransform
have no mapping doc, failed to reference from aliastorch.distributions.SoftplusTransform
Alias Warning: apitorch.igamma
have no mapping doc, failed to reference from aliastorch.special.gammainc
Alias Warning: apitorch.igammac
have no mapping doc, failed to reference from aliastorch.special.gammaincc
Alias Warning: apitorch.nn.modules.Linear
have no mapping doc, failed to reference from aliastorch.nn.linear
Alias Warning: apitorch.nn.modules.RNNCellBase
have no mapping doc, failed to reference from aliastorch.nn.RNNCellBase
Alias Warning: apitorch.nn.modules.linear.Linear
have no mapping doc, failed to reference from aliastorch.nn.linear
Alias Warning: apitorch.nn.modules.rnn.RNNCellBase
have no mapping doc, failed to reference from aliastorch.nn.RNNCellBase
Alias Warning: apitorch.nn.parameter.UninitializedParameter
have no mapping doc, failed to reference from aliastorch.nn.UninitializedParameter
Alias Warning: apitorch.selu_
have no mapping doc, failed to reference from aliastorch.nn.functional.selu_
Alias Warning: apitorch.threshold_
have no mapping doc, failed to reference from aliastorch.nn.functional.threshold_
Alias Warning: apitorch.torch.int32
have no mapping doc, failed to reference from aliastorch.int32
Alias Warning: apitransformers.generation.logits_process.LogitsProcessorList
have no mapping doc, failed to reference from aliastransformers.generation.LogitsProcessorList
Alias Warning: apitransformers.modeling_utils.PreTrainedModel
have no mapping doc, failed to reference from aliastransformers.PreTrainedModel
Alias Warning: apitransformers.utils.logging.get_logger
have no mapping doc, failed to reference from aliastransformers.logging.get_logger
这个torch.nn.linear
,在PaConvert中写错了,所以没匹配上。其他的都需要补充映射文档,除了 transformers.*
系列的API,其他的根据Matcher你这边补充一下文档吧:缺失API映射文档补充这一块工作,可能还缺少较多其他的要一起做(凡是有Matcher都需要有文档)
这个
torch.nn.linear
,在PaConvert中写错了,所以没匹配上。其他的都需要补充映射文档,除了transformers.*
系列的API,其他的根据Matcher你这边补充一下文档吧:缺失API映射文档补充这一块工作,可能还缺少较多其他的要一起做(凡是有Matcher都需要有文档)
这部分改动比较大,准备等先合入了再追加补充,避免和其他 PR 冲突。
torch.nn.Linear
已更新。
在映射主目录中添加 api 别名表格
该表格为静态数据,数据依赖 PaConvert,更新时需要手动更新。
api_alias_mapping.json
文件复制到validate_mapping_in_api_difference.py
所在目录中validate_mapping_in_api_difference.py
,基于 json 生成pytorch_api_mapping_cn.tmp.md
文件pytorch_api_mapping_cn.tmp.md
找到对应的## alias
部分,复制表格到pytorch_api_mapping_cn.md
中,完成更新。缺失 API:别名和本名都不存在文档的 API