Skip to content

Commit 6ef424b

Browse files
committed
Make Differentiate public to the transform package
- Same reason as materialize
1 parent e995d65 commit 6ef424b

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/torchjd/autojac/_transform/_differentiate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from .tensor_dict import _A
99

1010

11-
class _Differentiate(Transform[_A, _A], ABC):
11+
class Differentiate(Transform[_A, _A], ABC):
1212
def __init__(
1313
self,
1414
outputs: Iterable[Tensor],

src/torchjd/autojac/_transform/grad.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
import torch
44
from torch import Tensor
55

6-
from ._differentiate import _Differentiate
6+
from ._differentiate import Differentiate
77
from ._materialize import materialize
88
from .tensor_dict import Gradients
99

1010

11-
class Grad(_Differentiate[Gradients]):
11+
class Grad(Differentiate[Gradients]):
1212
def __init__(
1313
self,
1414
outputs: Iterable[Tensor],

src/torchjd/autojac/_transform/jac.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
import torch
77
from torch import Size, Tensor
88

9-
from ._differentiate import _Differentiate
9+
from ._differentiate import Differentiate
1010
from ._materialize import materialize
1111
from .tensor_dict import Jacobians
1212

1313

14-
class Jac(_Differentiate[Jacobians]):
14+
class Jac(Differentiate[Jacobians]):
1515
def __init__(
1616
self,
1717
outputs: Iterable[Tensor],

0 commit comments

Comments
 (0)