mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-05-02 10:39:10 -05:00
style: apply consistent whitespace and formatting across codebase
This commit is contained in:
@@ -12,7 +12,7 @@ This directory contains regression tests that ensure TinyTorch's core functional
|
||||
**What it tests**: Convolution output dimensions match Linear layer expectations
|
||||
**Why it matters**: Students shouldn't debug dimension mismatches in their CNNs
|
||||
|
||||
### Tensor Reshaping Tests
|
||||
### Tensor Reshaping Tests
|
||||
**File**: `test_transformer_reshaping.py`
|
||||
**What it tests**: Transformer 3D outputs work with Linear 2D layers
|
||||
**Why it matters**: Language model architectures should "just work"
|
||||
@@ -73,7 +73,7 @@ PREVENTION:
|
||||
|
||||
3. **Write Specific Test**: Test the EXACT scenario that failed
|
||||
|
||||
4. **Verify Test Catches Bug**:
|
||||
4. **Verify Test Catches Bug**:
|
||||
- Test should FAIL without the fix
|
||||
- Test should PASS with the fix
|
||||
|
||||
@@ -143,4 +143,4 @@ Each bug teaches us something:
|
||||
|
||||
---
|
||||
|
||||
Remember: **A bug fixed without a test is a bug waiting to return.**
|
||||
Remember: **A bug fixed without a test is a bug waiting to return.**
|
||||
|
||||
Reference in New Issue
Block a user