Skip to content

EmbeddingCombineLayer.backward函数内冗余代码  #1

@qinqiang2000

Description

@qinqiang2000

EmbeddingCombineLayer.backward函数内

if key in self._grads_to_embed:
    self._grads_to_embed[key] += g #这一行永远不会执行,在上面layer的回代已经执行过
else:
    self._grads_to_embed[key] = g

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions