(x)
| 25 | SCALE_RESERVE_NUM = 21 |
| 26 | |
| 27 | def gelu(x): |
| 28 | cdf = 0.5 * (1.0 + tf.tanh( |
| 29 | (np.sqrt(2 / np.pi) * (x + 0.044715 * tf.pow(x, 3))))) |
| 30 | return x * cdf |
| 31 | |
| 32 | |
| 33 | def layer_norm(input_tensor, name=None): |
nothing calls this directly
no outgoing calls
no test coverage detected