Skip to content

Commit 4597af8

Browse files
authored
docs(aggregation): Document the __call__ method publicly (#654)
1 parent d33cdf5 commit 4597af8

35 files changed

Lines changed: 103 additions & 43 deletions

docs/source/docs/aggregation/aligned_mtl.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,7 @@ Aligned-MTL
44
===========
55

66
.. autoclass:: torchjd.aggregation.AlignedMTL
7+
:members: __call__
78

89
.. autoclass:: torchjd.aggregation.AlignedMTLWeighting
10+
:members: __call__

docs/source/docs/aggregation/cagrad.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,7 @@ CAGrad
44
======
55

66
.. autoclass:: torchjd.aggregation.CAGrad
7+
:members: __call__
78

89
.. autoclass:: torchjd.aggregation.CAGradWeighting
10+
:members: __call__

docs/source/docs/aggregation/config.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ ConFIG
44
======
55

66
.. autoclass:: torchjd.aggregation.ConFIG
7+
:members: __call__

docs/source/docs/aggregation/constant.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,7 @@ Constant
44
========
55

66
.. autoclass:: torchjd.aggregation.Constant
7+
:members: __call__
78

89
.. autoclass:: torchjd.aggregation.ConstantWeighting
10+
:members: __call__

docs/source/docs/aggregation/dualproj.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,7 @@ DualProj
44
========
55

66
.. autoclass:: torchjd.aggregation.DualProj
7+
:members: __call__
78

89
.. autoclass:: torchjd.aggregation.DualProjWeighting
10+
:members: __call__

docs/source/docs/aggregation/flattening.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ Flattening
44
==========
55

66
.. autoclass:: torchjd.aggregation.Flattening
7+
:members: __call__

docs/source/docs/aggregation/graddrop.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ GradDrop
44
========
55

66
.. autoclass:: torchjd.aggregation.GradDrop
7+
:members: __call__

docs/source/docs/aggregation/gradvac.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ GradVac
44
=======
55

66
.. autoclass:: torchjd.aggregation.GradVac
7-
:members: reset
7+
:members: __call__, reset
88

99
.. autoclass:: torchjd.aggregation.GradVacWeighting
10-
:members: reset
10+
:members: __call__, reset

docs/source/docs/aggregation/imtl_g.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,7 @@ IMTL-G
44
======
55

66
.. autoclass:: torchjd.aggregation.IMTLG
7+
:members: __call__
78

89
.. autoclass:: torchjd.aggregation.IMTLGWeighting
10+
:members: __call__

docs/source/docs/aggregation/index.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,13 @@ Abstract base classes
88
---------------------
99

1010
.. autoclass:: torchjd.aggregation.Aggregator
11+
:members: __call__
1112

1213
.. autoclass:: torchjd.aggregation.Weighting
14+
:members: __call__
1315

1416
.. autoclass:: torchjd.aggregation.GeneralizedWeighting
17+
:members: __call__
1518

1619
.. autoclass:: torchjd.aggregation.Stateful
1720
:members: reset

0 commit comments

Comments
 (0)