Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/zai-org/CodeGeeX
/ openai_gelu
Function
openai_gelu
codegeex/megatron/model/utils.py:69–70 ·
view source on GitHub ↗
(x)
Source
from the content-addressed store, hash-verified
67
68
69
def
openai_gelu(x):
70
return
gelu_impl(x)
71
72
73
# This is actually Python equivalent of torch.nn.functional.gelu(), also with type hints for ONNX exporter
Callers
nothing calls this directly
Calls
1
gelu_impl
Function · 0.85
Tested by
no test coverage detected