Skip to content

Commit ef75b6f

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 029c7ab commit ef75b6f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/lightning/pytorch/loggers/mlflow.py

+4-5
Original file line numberDiff line numberDiff line change
@@ -234,14 +234,13 @@ def log_hyperparams(self, params: Union[dict[str, Any], Namespace]) -> None:
234234
params = _convert_params(params)
235235
params = _flatten_dict(params)
236236

237-
from mlflow.entities import Param
238-
239237
import mlflow.utils.validation
240-
238+
from mlflow.entities import Param
239+
241240
# Check maximum param value length is available and use it
242-
if hasattr(mlflow.utils.validation, 'MAX_PARAM_VAL_LENGTH'):
241+
if hasattr(mlflow.utils.validation, "MAX_PARAM_VAL_LENGTH"):
243242
param_length_limit = mlflow.utils.validation.MAX_PARAM_VAL_LENGTH
244-
else: # Fallback
243+
else: # Fallback
245244
param_length_limit = 250 # Historical default value
246245

247246
# Use mlflow default limit or truncate parameter values to 250 characters if limit is not available

0 commit comments

Comments
 (0)