We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87565cb commit 13b74f7Copy full SHA for 13b74f7
src/lightning/pytorch/trainer/connectors/accelerator_connector.py
@@ -15,6 +15,7 @@
15
import logging
16
import os
17
from collections import Counter
18
+from collections.abc import Iterable
19
from typing import Literal, Optional, Union
20
21
import torch
@@ -182,7 +183,7 @@ def _check_config_and_set_final_flags(
182
183
184
"""
185
if plugins is not None:
- plugins = [plugins] if not isinstance(plugins, list) else plugins
186
+ plugins = [plugins] if not isinstance(plugins, Iterable) else plugins
187
188
if isinstance(strategy, str):
189
strategy = strategy.lower()
0 commit comments