MCPcopy Create free account
hub / github.com/ACL2020SpellGCN/SpellGCN / get_activation

Function get_activation

modeling.py:279–313  ·  view source on GitHub ↗

Maps a string to a Python function, e.g., "relu" => `tf.nn.relu`. Args: activation_string: String name of the activation function. Returns: A Python function corresponding to the activation function. If `activation_string` is None, empty, or "linear", this will return None. If

(activation_string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected