MCPcopy Create free account
hub / github.com/ShannonAI/CorefQA / get_activation

Function get_activation

bert/modeling.py:285–319  ·  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 Non

(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