{"id":20324369,"url":"https://github.com/oniani/fun","last_synced_at":"2026-06-05T12:31:19.422Z","repository":{"id":112155929,"uuid":"484144238","full_name":"oniani/fun","owner":"oniani","description":"A compile-time stdlib-less activation function library","archived":false,"fork":false,"pushed_at":"2022-09-26T00:51:08.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-02T10:08:12.189Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oniani.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-21T17:27:10.000Z","updated_at":"2022-05-26T12:06:25.000Z","dependencies_parsed_at":"2023-08-01T08:47:32.681Z","dependency_job_id":null,"html_url":"https://github.com/oniani/fun","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oniani%2Ffun","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oniani%2Ffun/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oniani%2Ffun/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oniani%2Ffun/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oniani","download_url":"https://codeload.github.com/oniani/fun/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241827452,"owners_count":20026688,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T19:33:44.461Z","updated_at":"2026-06-05T12:31:19.416Z","avatar_url":"https://github.com/oniani.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fun\n\nA compile-time stdlib-less activation function library.\n\n## Supported Activation Functions\n\n- Sigmoid and Related Activation Functions:\n\n  - [Sigmoid][sigmoid]\n  - [Softmax][softmax]\n\n- ReLU and Related Activation Functions:\n\n  - Linear Variants:\n\n    - [ReLU][relu]\n    - [Leaky ReLU][leakyrelu]\n    - [Parametric ReLU][parametricrelu]\n\n  - Non-linear Variants:\n\n    - [GELU][gelu]\n    - [SiLU][silu]\n    - [ELU][elu]\n    - [Softplus][softplus]\n    - [Mish][mish]\n\n- Other Activation Functions:\n\n  - [Identity][identity]\n  - [Binary Step][binarystep]\n  - [tanh][tanh]\n  - [Gaussian][gaussian]\n  - [Growing Cosine Unit][growingcosineunit]\n\n## API\n\n```cpp\n#include \"fun.hpp\"\n\nint main() {\n  auto z = softplus(1.2);\n  std::cout \u003c\u003c z \u003c\u003c '\\n';\n}\n```\n\n## Build\n\n```console\n$ mkdir build\n$ cd build\n$ cmake -DCOMPILER=clang -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=VCPKG_TOOLCHAIN_FILE ..\n$ cmake --build .\n```\n\n## References\n\n- [Activation function][activationfunction]\n\n## License\n\n[MIT License][license]\n\n[sigmoid]: https://en.wikipedia.org/wiki/Sigmoid_function\n[softmax]: https://en.wikipedia.org/wiki/Softmax_function\n[relu]: https://en.wikipedia.org/wiki/Rectifier_(neural_networks)\n[leakyrelu]: https://en.wikipedia.org/wiki/Rectifier_(neural_networks)#Leaky_ReLU\n[parametricrelu]: https://en.wikipedia.org/wiki/Rectifier_(neural_networks)#Parametric_ReLUQ\n[gelu]: https://en.wikipedia.org/wiki/Rectifier_(neural_networks)#Gaussian-error_linear_unit_(GELU)\n[silu]: https://en.wikipedia.org/wiki/Rectifier_(neural_networks)#SiLU\n[elu]: https://en.wikipedia.org/wiki/Rectifier_(neural_networks)#ELU\n[softplus]: https://en.wikipedia.org/wiki/Rectifier_(neural_networks)#Softplus\n[mish]: https://en.wikipedia.org/wiki/Rectifier_(neural_networks)#Mish\n[identity]: https://en.wikipedia.org/wiki/Identity_function\n[binarystep]: https://en.wikipedia.org/wiki/Heaviside_step_function\n[tanh]: https://en.wikipedia.org/wiki/Hyperbolic_functions#Hyperbolic_tangent\n[gaussian]: https://en.wikipedia.org/wiki/Gaussian_function\n[growingcosineunit]: https://arxiv.org/abs/2108.12943\n[activationfunction]: https://en.wikipedia.org/wiki/Activation_function\n[license]: LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foniani%2Ffun","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foniani%2Ffun","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foniani%2Ffun/lists"}