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 37acb87 commit 65d1208Copy full SHA for 65d1208
deepxde/nn/regularizers.py
@@ -22,10 +22,10 @@ def get(identifier):
22
"""
23
24
# TODO: other backends
25
- if identifier is None:
+ if identifier is None or not identifier:
26
return None
27
28
- if isinstance(identifier, (list, tuple)) and identifier:
+ if isinstance(identifier, (list, tuple)):
29
name = identifier[0].lower()
30
factor = identifier[1:]
31
else:
0 commit comments