Skip to content

Commit

Permalink
spacing to match
Browse files Browse the repository at this point in the history
  • Loading branch information
lockwo committed Mar 4, 2024
1 parent 93ac945 commit 8219121
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions equinox/_ad.py
Original file line number Diff line number Diff line change
Expand Up @@ -502,12 +502,18 @@ def filter_jacrev(fun, has_aux: bool = False):

def filter_hessian(fun, has_aux: bool = False):
"""Computes the Hessian of `fun`. The inputs and outputs may be arbitrary PyTrees.
**Arguments:**
- `fun`: The function to be differentiated.
**Returns:**
A function with the same arguments as `fun`.
If `has_aux is False` then this function returns just the Hessian of `fun` with
respect to its first argument.
If `has_aux is True` then it returns a pair `(hessian, aux)`, where `aux` is the
auxiliary data returned from `fun`.
"""
Expand Down

0 comments on commit 8219121

Please sign in to comment.