Skip to content

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

Open
@cangtianhuang

Description

@cangtianhuang

文档链接&描述 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~😉

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions