Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenDriveLab/ReSim
/ gelu
Function
gelu
SwissArmyTransformer/sat/model/official/chatglm_model.py:16–17 ·
view source on GitHub ↗
(x)
Source
from the content-addressed store, hash-verified
14
(1.0 + 0.044715 * x * x)))
15
16
def
gelu(x):
17
return
gelu_impl(x)
18
19
from
sat.model.position_embedding.rotary_embeddings
import
RotaryEmbedding, apply_rotary_pos_emb_index
20
from
sat.mpu.layers
import
ColumnParallelLinear
Callers
1
forward
Method · 0.70
Calls
1
gelu_impl
Function · 0.70
Tested by
no test coverage detected