1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
use crateTensor;
/// Helper function to format the output shape for activation layers.
///
/// Returns a formatted string representing the shape of the cached tensor,
/// or "Unknown" if no tensor has been cached yet.
/// Linear (Identity) activation layer.
/// ReLU (Rectified Linear Unit) activation layer
/// Sigmoid activation layer
/// Softmax activation layer
/// Tanh (Hyperbolic Tangent) activation layer
pub use Linear;
pub use ReLU;
pub use Sigmoid;
pub use Softmax;
pub use Tanh;