← 输入框|github.com|刷新
Skip to content

Tangents are not being propagated through the relu and sigmoid activations. #16

Closed

Description

@mrakgr
static member ReLU (a:D) =
    let inline ff(a) = max 0.f a
    let inline fd(a) = D.ReLU(a)
    let inline df(cp, ap, at) = (1.f + D.Sign(ap)) / 2.f
    let inline r(a) = ReLU_D(a)
    D.Op_D_D (a, ff, fd, df, r)

static member Sigmoid (a:D) =
    let inline ff(a) = 1.f / (1.f + exp -a)
    let inline fd(a) = D.Sigmoid(a)
    let inline df(cp:D, ap, at) = cp * (1.f - cp)
    let inline r(a) = Sigmoid_D(a)
    D.Op_D_D (a, ff, fd, df, r)

In the df functions there should be an at in there somewhere. The DV and DM versions are similarly affected.

Activity

  1. gbaydin commented on Dec 24, 2015

    @gbaydin
    Member

    Yes, this is a bug affecting the forward AD of ReLU and Sigmoid. Thank you very much for reporting it.

    It is now fixed in the repository.

  2. gbaydin commented on Dec 25, 2015

    @gbaydin
    Member

    This is fixed in version 0.7.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions