Files
TinyTorch/modules/source/02_activations
Vijay Janapa Reddi fd6f377b77 Update activation examples to use PyTorch-style callable API
Updated docstring examples to use cleaner callable syntax:
- sigmoid(x) instead of sigmoid.forward(x)
- relu(x) instead of relu.forward(x)
- tanh(x) instead of tanh.forward(x)
- gelu(x) instead of gelu.forward(x)
- softmax(x) instead of softmax.forward(x)

This demonstrates the proper usage pattern with the __call__ methods
we just added, making examples more Pythonic and PyTorch-compatible.
2025-09-30 12:36:00 -04:00
..