Skip to content

withgradient and gradient are incoherent for scalar input #165

Closed
@gdalle

Description

@gdalle
julia> Tracker.gradient(abs2, 3)
(6.0 (tracked),)

julia> Tracker.withgradient(abs2, 3)
(val = 9, grad = (nothing,))

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