Download code/flash-linear-attention/fla/ops/utils/constant.py from amonshano/echo: direct link, hf CLI and curl.
- Browser
- Download file 196 Bytes
-
https://huggingface.co/amonshano/echo/resolve/main/code/flash-linear-attention/fla/ops/utils/constant.py
- Command line
-
hf download hf://amonshano/echo/code/flash-linear-attention/fla/ops/utils/constant.py
-
curl -L -o constant.py https://huggingface.co/amonshano/echo/resolve/main/code/flash-linear-attention/fla/ops/utils/constant.py
196 Bytes
| # Copyright (c) 2023-2025, Songlin Yang, Yu Zhang | |
| # Approximate value of 1/ln(2), used for log/exp base conversion | |
| # Best FP32 approximation: 1.4426950216 (hex 0x3FB8AA3B) | |
| RCP_LN2 = 1.4426950216 | |