Skip to content

Commit 360653e

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lightning/pytorch/utilities/parsing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
import inspect
1818
import pickle
1919
import types
20+
from argparse import Namespace
2021
from dataclasses import fields, is_dataclass
2122
from typing import Any, Dict, List, Literal, MutableMapping, Optional, Sequence, Tuple, Type, Union
22-
from argparse import Namespace
2323

2424
from torch import nn
2525

@@ -205,7 +205,7 @@ def save_hyperparameters(
205205

206206
# filter out hp based on ignore list
207207
if isinstance(hp, Namespace):
208-
hp = vars(hp)
208+
hp = vars(hp)
209209
hp = {k: v for k, v in hp.items() if k not in ignore}
210210
obj._set_hparams(hp)
211211

0 commit comments

Comments
 (0)