-
Notifications
You must be signed in to change notification settings - Fork 861
更新映射文档 #7484
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
更新映射文档 #7484
Conversation
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.
transformers.PreTrainedTokenizer 改成 仅API调用方式不一致 吧
仅API调用方式不一致,基本都不符合模板要求,模板格式如下: 分类 2:仅 API 调用方式不一致[ 仅 API 调用方式不一致 ]torch.Tensor.dettorch.Tensor.dettorch.Tensor.det() paddle.linalg.detpaddle.linalg.det(x, name=None) 两者功能一致,但调用方式不一致,具体如下: 转写示例# PyTorch 写法:
x.det()
# Paddle 写法:
paddle.linalg.det(x) |
感谢你贡献飞桨文档,文档预览构建中,Docs-New 跑完后即可预览,预览链接:http://preview-pr-7484.paddle-docs-preview.paddlepaddle.org.cn/documentation/docs/zh/api/index_cn.html |
@@ -1,4 +1,4 @@ | |||
## [ 无参数 ] torch.Tensor.dtype | |||
## [仅 API 调用方式不一致] torch.Tensor.dtype |
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.
这个在NO_NEED_CONVERT里,第1类。怎么扫成了 第2类
@@ -1,4 +1,4 @@ | |||
## [ 无参数 ] torch.Tensor.T | |||
## [仅 API 调用方式不一致] torch.Tensor.T |
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.
这个也在NO_NEED_CONVERT里,第1类。怎么扫成了 第2类
检查一下,第2类里是不是有些映射文档不太正确。 api_difference里的内容可以暂时不校正,但个数和文件名是要能对上的。 |
@@ -1,4 +1,4 @@ | |||
## [ 无参数 ]torch.numel | |||
## [仅 API 调用方式不一致]torch.numel |
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.
这个不是那5种Matcher,是NumelMatcher,为何归到invok_diff_only里了
这个其实是 返回类型不一致
@@ -1,4 +1,4 @@ | |||
## [参数完全一致]transformers.modeling_outputs.CausalLMOutputWithPast | |||
## [仅 API 调用方式不一致]transformers.modeling_outputs.CausalLMOutputWithPast |
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.
第三方库的,如果不属于3~12类,都先改成 『仅 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.
代码风格没通过
code style需要在本地装一个pre-commit,你本地提交时会自动触发 代码风格检查。 |
@hd9568 NO_NEED_CONVER的名单里又增加了一些,需要拉一下最新paconvert代码,重新刷一下。 |
68dce0b
to
ae68885
Compare
@@ -1,4 +1,4 @@ | |||
## [无参数]torch.get_default_device | |||
## [仅 API 调用方式不一致]torch.get_default_device |
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.
这个在global_var里,是 『API完全一致』
NumelMatcher、Is_InferenceMatcher都算做 仅API调用方式不一致 |
No description provided.