Skip to content

Commit a434725

Browse files
SeanNarenlexierule
authored andcommitted
Add missing imports & stage
Add missing stage
1 parent c9de8e3 commit a434725

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

pytorch_lightning/trainer/connectors/data_connector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def attach_data(self, model, train_dataloader, val_dataloaders, datamodule):
8181

8282
# set up the passed in dataloaders (if needed)
8383
self.attach_dataloaders(model, train_dataloader, val_dataloaders)
84-
self.attach_datamodule(model, datamodule)
84+
self.attach_datamodule(model, datamodule, 'fit')
8585
self._validate_data_hooks(model)
8686

8787
def __enforce_datamodule_dataloader_override(self, train_dataloader, val_dataloaders, datamodule):

tests/trainer/logging_/test_distributed_logging.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,15 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-
14+
import os
1515
import platform
1616
from unittest import mock
17+
from unittest.mock import Mock
1718

1819
import pytest
1920
import torch
2021

21-
from pytorch_lightning import Trainer
22+
from pytorch_lightning import Callback, Trainer
2223
from tests.helpers import BoringModel
2324

2425

0 commit comments

Comments
 (0)