Skip to main content

teeny_core/nn/activation/
mod.rs

1/*
2 * Copyright (c) 2026 Teenygrad.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *   http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17/// ELU and SELU.
18pub mod elu;
19/// GELU (exact and tanh-approximate).
20pub mod gelu;
21/// "Hard" (piecewise-linear) activation approximations: hardtanh, hardsigmoid, hardswish.
22pub mod hard;
23/// Other activations that don't fit the other modules.
24pub mod misc;
25/// ReLU and leaky ReLU.
26pub mod relu;
27/// Sigmoid and related activations.
28pub mod sigmoid;
29/// Softmax and log-softmax.
30pub mod softmax;
31/// Tanh and related activations.
32pub mod tanh;