Skip to content

Commit

Permalink
Match the returned # of arguments/gradients between CPU hungarian mat…
Browse files Browse the repository at this point in the history
…ching custom VJP primal function and bwd rule.

PiperOrigin-RevId: 719440273
  • Loading branch information
Scenic Authors committed Jan 24, 2025
1 parent 794bb40 commit 8820fc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scenic/model_lib/matchers/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def matching_fn_hcb_vjp_fwd(cost, n_cols):
return matching_fn_hcb(cost, n_cols), None

def matching_fn_hcb_vjp_bwd(*_):
return (None,) # Return no gradient.
return (None, None) # Return no gradient.

matching_fn_hcb.defvjp(matching_fn_hcb_vjp_fwd, matching_fn_hcb_vjp_bwd)

Expand Down

0 comments on commit 8820fc9

Please sign in to comment.