Skip to content

Redundant calculation of derivatives of power function #1576

@titaneric

Description

@titaneric

Hi,

It seems that this repo have the same issue as HIPS/autograd#541 and pytorch/pytorch#28651 .

However, it's quiet more complicated than I fix in autograd, so I have no clues how to fix it.

The following is here I found

  • The min and max function will take the ans into account to determine their derivatives, and the type of these two is standard_binop, which is same as power.
  • The definition of VJP in jax is different than autograd, which is more dynamic ( I mean the argument of VJP can be different, not the fixed form lambda g, ans, x, y )

Could your priors guide me to fix this issue?

It may be solved after I finally find out how jax works, but if someone can help me or give me some hints, it will be great!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions