Skip to content

ReverseDiff Extension makes vector parameter into a scalar #1013

@avik-pal

Description

@avik-pal

If I provide a parameter p = [4.0], I would expect it to stay as a Vector. Currently it gets converted into a TrackedReal.

julia> reduce(vcat, ReverseDiff.track([4.0]))
TrackedReal<Cz3>(4.0, 0.0, 5TV, 1, 3KQ)

Maybe we should add a special case for length(p) == 1 and not do reduce(vcat, p)

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