Files
TinyTorch/tinytorch
Vijay Janapa Reddi 8f99655942 Implement autograd support in activation functions (Module 03)
- Add Variable support to ReLU, Sigmoid, Tanh, and Softmax activations
- Implement mathematically correct gradient functions for each activation:
  * ReLU: gradient = 1 if x > 0, else 0
  * Sigmoid: gradient = σ(x) * (1 - σ(x))
  * Tanh: gradient = 1 - tanh²(x)
  * Softmax: gradient with proper Jacobian computation
- Maintain backward compatibility with Tensor-only usage
- Add comprehensive gradient accuracy tests

This enables activation functions to participate in the autograd computational
graph, completing the foundation for neural network training.
2025-09-21 10:28:21 -04:00
..
2025-07-14 13:04:44 -04:00