Skip to content

Commit d153b99

Browse files
committed
Update RFC-00xx-automatic-implicit-differentiation.md
1 parent dacc7fe commit d153b99

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

RFC-00xx-automatic-implicit-differentiation.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,58 @@ def fixed_point(f: Callable, g: Callable):
261261
pass
262262
```
263263

264+
##### `@torch.optim.root_jvp`
265+
266+
```Python
267+
from typing import Any, Callable, Tuple
268+
269+
270+
def root_jvp(
271+
f: Callable,
272+
g: Callable,
273+
x: Tuple[Any],
274+
y: Tuple[Any],
275+
z: Any,
276+
):
277+
"""
278+
Jacobian-vector product of a root.
279+
280+
Args:
281+
f:
282+
g: linear solver of the form ``g(a, b)``.
283+
x: arguments.
284+
y: tangents.
285+
z: solution.
286+
"""
287+
pass
288+
```
289+
290+
##### `@torch.optim.root_vjp`
291+
292+
```Python
293+
from typing import Any, Callable, Tuple
294+
295+
296+
def root_vjp(
297+
f: Callable,
298+
g: Callable,
299+
x: Tuple[Any],
300+
y: Tuple[Any],
301+
z: Any,
302+
):
303+
"""
304+
Add implicit differentiation to a fixed point method.
305+
306+
Args:
307+
f:
308+
g: linear solver of the form ``g(a, b)``.
309+
x: arguments.
310+
y: cotangents.
311+
z: solution.
312+
"""
313+
pass
314+
```
315+
264316
#### Bracketing Optimizers
265317

266318
PyTorch provides a variety of bracketing methods for univariate functions, or functions involving a single variable.

0 commit comments

Comments
 (0)