Skip to content

Issue with logsumexp with ForwardDiff (and -Inf values) #59

Closed
@theogf

Description

@theogf

Here is a MWE:

julia> using ForwardDiff, LogExpFunctions

julia> x = log.([0.0; rand(10)]);

julia> ForwardDiff.gradient(logsumexp, x)
11-element Vector{Float64}:
 NaN
 NaN
 NaN
 NaN
 NaN
 NaN
 NaN
 NaN
 NaN
 NaN
 NaN

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