Skip to content

attention公式中,分母的dk作用 #30

@KinghooSung

Description

@KinghooSung

防止梯度消失而不是爆炸,假设a = softmax(x), 函数对x求导得a(1-a), 如果a为最大值则a=1, 那么 a(1-1)=0 导致梯度消失。

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