Skip to content

Commit d7a0786

Browse files
authored
prevent internal call to has_prepared_data showing a warning (#8271)
1 parent 51e0d74 commit d7a0786

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytorch_lightning/trainer/connectors/data_connector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def prepare_data(self, model):
6060
def can_prepare_data(self):
6161
should_call_dm_prepare_data = True
6262
if self.trainer.datamodule is not None and is_overridden('prepare_data', self.trainer.datamodule):
63-
should_call_dm_prepare_data = not self.trainer.datamodule.has_prepared_data
63+
should_call_dm_prepare_data = not self.trainer.datamodule._has_prepared_data
6464

6565
if self.trainer.prepare_data_per_node:
6666
return self.trainer.local_rank == 0 and should_call_dm_prepare_data

0 commit comments

Comments
 (0)