Skip to content

paddle.nn.functional.embedding 有一点点小问题 #7243

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

Open
cangtianhuang opened this issue Apr 8, 2025 · 0 comments
Open

paddle.nn.functional.embedding 有一点点小问题 #7243

cangtianhuang opened this issue Apr 8, 2025 · 0 comments

Comments

@cangtianhuang
Copy link
Contributor

cangtianhuang commented Apr 8, 2025

文档链接&描述 Document Links & Description

位于 paddle.nn.functional.embedding

源码中的第一个输入参数为 x,但文档中的介绍均为 input ,尚未更新:

paddle.nn.functional.embedding(x, weight, padding_idx=None, max_norm=None, norm_type=2.0, sparse=False, scale_grad_by_freq=False, name=None)
参数
input (Tensor) - 存储 id 信息的 Tensor,数据类型必须为:int32/int64。input 中的 id 必须满足 0 =< id < size[0] 。

请提出你的建议/提个PR修复这个问题 Please give your suggestion/update a PR to fix it

pr will come tomorrow~😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant