Skip to content

[问题/Issue] 章节2.3.3 :注释有误 #179

@fengxiaohu

Description

@fengxiaohu

1. 遇到问题的章节 / Affected Chapter

2.3.3

2. 具体问题描述 / Problem Description

  • 2.3.3 Transformer.forward 的注释中提到输入 idx 维度为 (batch size, sequence length, 1) ,但实际上 nn.Embedding 接收的应该是 (batch size, sequence length) 的 LongTensor
Image

3. 问题重现材料 / Reproduction Materials

Image

确认事项 / Verification

  • 此问题未在过往Issue中被报告过 / This issue hasn't been reported before

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions