4 Commits

Author SHA1 Message Date
Vijay Janapa Reddi
af0beb9408 Simplify top bar to match MLSysBook style
- Clean navigation bar: brand left, links right
- Icon+text buttons: MLSysBook, Subscribe, Star, Community
- Responsive: icons only on mobile
- Removed old WIP banner complexity
2025-12-02 21:24:22 -05:00
Vijay Janapa Reddi
2c5ef2e3cf Fix tagline consistency: Don't import it. Build it.
- Remove 'just' from all instances of the tagline
- Update banner to lead with tagline
- Consistent branding across docs, CLI, and demos
2025-12-02 21:17:41 -05:00
Vijay Janapa Reddi
6f8494cff8 Create CNN integration tests and move inline cross-module tests
- Add test_cnn_networks.py: Comprehensive CNN ↔ Networks integration tests
  - Conv2D layers in Sequential networks
  - Multiple Conv2D stacking, different activations
  - Batch processing, kernel sizes, feature extraction
  - Parameter efficiency comparisons, edge cases

- Add test_cnn_pipeline.py: CNN pipeline integration tests
  - CNN → Activation → Flatten → Dense pipelines
  - Deep CNN architectures with multiple stages
  - Numerical stability testing, batch processing
  - Moved from inline test in cnn_dev.py (proper separation)

- Update cnn_dev.py: Remove inline integration test
  - Replaced cross-module integration test with comment
  - Maintains clean separation between unit and integration tests

- Clean up test structure: Remove unused e2e/__init__.py

Result: Complete integration test coverage for CNN interactions
96 passing integration tests using real TinyTorch components
2025-07-13 23:54:22 -04:00
Vijay Janapa Reddi
d1f587c55d Reorganize tests: Remove mocks, add real integration tests
REMOVED (Mock-based tests that duplicate inline tests):
• test_activations.py - Used MockTensor instead of real Tensor
• test_layers.py - Used MockTensor instead of real Tensor
• test_networks.py - Used MockTensor/MockLayer instead of real components
• test_cnn.py - Used MockTensor instead of real Tensor
• test_dataloader.py - Used MockTensor/MockDataset instead of real components

ADDED (Real integration tests with actual TinyTorch components):
• integration/test_tensor_activations.py - Tests real Tensor ↔ Activations integration
• integration/test_layers_networks.py - Tests real Dense ↔ Sequential/MLP integration
• e2e/ directory structure for end-to-end tests

RESULT:
• Reduced test count from 209 → 70 (removed 139 redundant mock-based tests)
• All 70 remaining tests use real components for true integration testing
• Clear separation: inline tests (component validation) vs integration tests (cross-module)
• Better QA structure following proper testing pyramid

This follows QA best practices: since all modules are working and building on each
other, integration tests should use real components, not mocks. Mocks were preventing
us from catching actual integration issues.
2025-07-13 23:10:14 -04:00