Skip to content

Whats the reason for the derivative / gradient difference?  #61

@marius311

Description

@marius311

Is there a reason to have a separate function derivative for the gradient wrt a scalar value? I find that it tends to make me have to add special cases where code would just work for both vectors and scalars if there was a definition of something like:

AD.gradient(ad::AD.AbstractBackend, f, x::Number) = AD.derivative(ad, f, x)

Metadata

Metadata

Assignees

No one assigned

    Labels

    designPackage structure and correctnessquestionInquiries and discussions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions