@@ -75,7 +75,7 @@ def __init__(
75
75
"`forward_module` must be a `LightningModule` instance or have an attribute `.module` pointing to one,"
76
76
f" got: { forward_module .__class__ .__qualname__ } "
77
77
)
78
- # TODO: In v1.10 .0, remove the Optional type from forward_module and remove the assertion
78
+ # TODO: In v2.0 .0, remove the Optional type from forward_module and remove the assertion
79
79
assert forward_module is not None
80
80
self ._forward_module = forward_module
81
81
@@ -118,11 +118,11 @@ def _validate_init_arguments(
118
118
pl_module : Optional [Union ["pl.LightningModule" , _LightningPrecisionModuleWrapperBase ]] = None ,
119
119
forward_module : Optional [Union ["pl.LightningModule" , _LightningPrecisionModuleWrapperBase ]] = None ,
120
120
) -> None :
121
- # TODO: In v1.10 .0, remove this method and mark the forward_module init argument in all subclasses as required
121
+ # TODO: In v2.0 .0, remove this method and mark the forward_module init argument in all subclasses as required
122
122
if pl_module is not None :
123
123
rank_zero_deprecation (
124
124
f"The argument `pl_module` in `{ cls .__name__ } ` is deprecated in v1.8.0 and will be removed in"
125
- " v1.10 .0. Please use `forward_module` instead."
125
+ " v2.0 .0. Please use `forward_module` instead."
126
126
)
127
127
elif forward_module is None :
128
128
raise ValueError ("Argument `forward_module` is required." )
@@ -133,7 +133,7 @@ def unwrap_lightning_module(wrapped_model: nn.Module, _suppress_warning: bool =
133
133
attributes on the wrapper.
134
134
135
135
.. deprecated:: v1.8.0
136
- The function ``unwrap_lightning_module`` is deprecated in v1.8.0 and will be removed in v1.10 .0. Access the
136
+ The function ``unwrap_lightning_module`` is deprecated in v1.8.0 and will be removed in v2.0 .0. Access the
137
137
``LightningModule`` directly through the strategy attribute ``Strategy.lightning_module``.
138
138
139
139
Raises:
@@ -142,7 +142,7 @@ def unwrap_lightning_module(wrapped_model: nn.Module, _suppress_warning: bool =
142
142
"""
143
143
if not _suppress_warning :
144
144
rank_zero_deprecation (
145
- "The function `unwrap_lightning_module` is deprecated in v1.8.0 and will be removed in v1.10 .0. Access the"
145
+ "The function `unwrap_lightning_module` is deprecated in v1.8.0 and will be removed in v2.0 .0. Access the"
146
146
" `LightningModule` directly through the strategy attribute `Strategy.lightning_module`."
147
147
)
148
148
model = wrapped_model
0 commit comments