MCPcopy Index your code
hub / github.com/NVIDIA/TensorRT-LLM / quick_gelu

Function quick_gelu

tensorrt_llm/functional.py:3384–3385  ·  view source on GitHub ↗
(x: Tensor)

Source from the content-addressed store, hash-verified

3382
3383
3384def quick_gelu(x: Tensor) -> Tensor:
3385 return x * sigmoid(1.702 * x)
3386
3387
3388def gegelu(x: Tensor, limit: Optional[float] = None) -> Tensor:

Callers 1

gegeluFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected