Skip to content

AD norm is NaN at origin #191

@koehlerson

Description

@koehlerson

Not really specific to Tensors.jl, but maybe it's good to document it here as well. I ran into the following issue yesterday

julia> using Tensors

julia> Tensors.hessian(x->norm(x),zero(Tensor{2,2}),:all)
([NaN NaN; NaN NaN;;; NaN NaN; NaN NaN;;;; NaN NaN; NaN NaN;;; NaN NaN; NaN NaN], [NaN NaN; NaN NaN], 0.0)

Basically a duplicate of JuliaDiff/ChainRules.jl#576 and JuliaDiff/ForwardDiff.jl#547 just at a different repo. You can close it if you think its too redundant.

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