Skip to content

Commit 6cf1eb4

Browse files
committed
tmp fix to run unit tests
1 parent 8072920 commit 6cf1eb4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pytorch_lightning/utilities/logger.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919
import numpy as np
2020
import torch
2121

22-
from pytorch_lightning.loggers import LightningLoggerBase
23-
2422

2523
def _convert_params(params: Union[Dict[str, Any], Namespace]) -> Dict[str, Any]:
2624
"""Ensure parameters are a dict or convert to dict if necessary.
@@ -150,15 +148,15 @@ def _add_prefix(metrics: Dict[str, float], prefix: str, separator: str) -> Dict[
150148
return metrics
151149

152150

153-
def _name(loggers: List[LightningLoggerBase]) -> str:
151+
def _name(loggers: List[Any]) -> str:
154152
if len(loggers) == 1:
155153
return loggers[0].name
156154
else:
157155
# Concatenate names together, removing duplicates and preserving order
158156
return "_".join(dict.fromkeys(str(logger.name) for logger in loggers))
159157

160158

161-
def _version(loggers: List[LightningLoggerBase]) -> Union[int, str]:
159+
def _version(loggers: List[Any]) -> Union[int, str]:
162160
if len(loggers) == 1:
163161
return loggers[0].version
164162
else:

0 commit comments

Comments
 (0)