Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions deepxde/nn/activations.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ def get(identifier):

Args:
identifier: Function or string (ELU, GELU, ReLU, SELU, Sigmoid, SiLU, sin,
Swish, tanh).
Swish, tanh, linear).

Returns:
Function corresponding to the input string or input function.
Function corresponding to the input string or input function, Linear if identifier is None.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Linear" -> "linear"

"""
if identifier is None:
return linear
Expand All @@ -62,6 +62,7 @@ def get(identifier):
"sin": bkd.sin,
"swish": bkd.silu,
"tanh": bkd.tanh,
"linear": linear,
}[identifier.lower()]
if callable(identifier):
return identifier
Expand Down