mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-07-16 23:24:55 -05:00
[GH-ISSUE #1692] [TinyTorch] GELU code solution issue in tinytorch/src/02_activations/02_activations.py
#18065
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @bdub-1 on GitHub (May 6, 2026).
Original GitHub issue: https://github.com/harvard-edge/cs249r_book/issues/1692
Module
02 Activations
Type of Improvement
Code quality (refactor, style, consistency)
Description
Something to point out (relating to #1689). In this issue I referenced tinytorch/src/02_activations to populate the implementation for GELU. This fits in with how the other implementations are presented in the docs.
However, I noticed the current src code solution to be an issue. This line indicates we need to reuse the
Sigmoidclass we already built but then the current GELU solution uses a non-numerically stable GELU approximation approach.Proposed Solution
Should the src code be updated in module 02 to reflect this? @profvjreddi