Skip to content

Commit 87880c7

Browse files
s-rogBorda
andauthored
Update pytorch_lightning/utilities/parsing.py
Co-authored-by: Jirka Borovec <[email protected]>
1 parent 1ff4320 commit 87880c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytorch_lightning/utilities/parsing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ def save_hyperparameters(
241241
if ignore is not None:
242242
if isinstance(ignore, str):
243243
ignore = [ignore]
244-
if isinstance(ignore, (list, tuple)):
244+
if isinstance(ignore, (list, tuple, set)):
245245
ignore = [arg for arg in ignore if isinstance(arg, str)]
246246
init_args = {k: v for k, v in init_args.items() if k not in ignore}
247247

0 commit comments

Comments
 (0)