Skip to content

Conversation

RedContritio
Copy link
Contributor

No description provided.

Copy link

paddle-bot bot commented Jun 24, 2024

感谢你贡献飞桨文档,文档预览构建中,Docs-New 跑完后即可预览,预览链接:http://preview-pr-6696.paddle-docs-preview.paddlepaddle.org.cn/documentation/docs/zh/api/index_cn.html
预览工具的更多说明,请参考:飞桨文档预览工具


### 参数映射

| PyTorch | PaddlePaddle | 备注 |
| ------------- | ------------ | ------------------------------------------------------ |
| input | x | 输入的多维 Tensor ,PyTorch 支持布尔和数值类型的输入,Paddle 仅支持布尔类型,需要转写。 |
| input | x | 输入的多维 Tensor ,参数完全一致。 |
Copy link
Collaborator

Choose a reason for hiding this comment

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

仅参数名不一致

这个有验证两者支持的数据类型是一致的吗

Copy link
Contributor Author

@RedContritio RedContritio Jun 29, 2024

Choose a reason for hiding this comment

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

PaConvert 已经有数值类型的输入,对应单测

@RedContritio
Copy link
Contributor Author

@sunzhongkai588 孙桑,看看我这里给 api 添加了一个 label_smoothing 参数

@luotao1
Copy link
Collaborator

luotao1 commented Jul 1, 2024

请问这个PR什么时候能合入呀,不然后面文档构建都失败啦

Copy link
Collaborator

@sunzhongkai588 sunzhongkai588 left a comment

Choose a reason for hiding this comment

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

LGTM

@luotao1 luotao1 merged commit db09700 into PaddlePaddle:develop Jul 1, 2024
@RedContritio RedContritio deleted the update_api_patch_1 branch July 3, 2024 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants