Skip to content

Commit 702cdc8

Browse files
update prepare_data_per_node as attributes
1 parent a72c929 commit 702cdc8

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

pytorch_lightning/core/hooks.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -372,11 +372,9 @@ def configure_sharded_model(self) -> None:
372372
class DataHooks:
373373
"""Hooks to be used for data related stuff."""
374374

375-
__jit_unused_properties__ = ["prepare_data_per_node"]
376-
377375
def __init__(self) -> None:
378376
"""
379-
property:
377+
Attributes:
380378
prepare_data_per_node:
381379
If True, each LOCAL_RANK=0 will call prepare data.
382380
Otherwise only NODE_RANK=0, LOCAL_RANK=0 will prepare data.

pytorch_lightning/core/lightning.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ class LightningModule(
7979
"truncated_bptt_steps",
8080
"loaded_optimizer_states_dict",
8181
]
82-
+ DataHooks.__jit_unused_properties__
8382
+ DeviceDtypeModuleMixin.__jit_unused_properties__
8483
+ HyperparametersMixin.__jit_unused_properties__
8584
)

0 commit comments

Comments
 (0)