mirror of
https://github.com/MLSysBook/TinyTorch.git
synced 2026-04-27 19:08:09 -05:00
- Add comprehensive inline testing for CNN module with 4 test functions: * test_convolution_operations(): Basic convolution, edge detection, blur kernels, different sizes * test_conv2d_layer(): Layer initialization, forward pass, learnable parameters, computer vision scenarios * test_flatten_operations(): Basic flattening, aspect ratios, data order, CNN-Dense connection * test_cnn_pipelines(): Simple CNN, multi-layer CNN, image classification, real-world architectures - Add comprehensive inline testing for DataLoader module with 4 test functions: * test_dataset_interface(): Abstract base class, SimpleDataset implementation, configurations, edge cases * test_dataloader_functionality(): Basic operations, batch iteration, different sizes, shuffling * test_data_pipeline_scenarios(): Image classification, text classification, tabular data, small datasets * test_integration_with_ml_workflow(): Training loops, validation loops, model inference, cross-validation - Both modules now include realistic ML scenarios and production-ready testing patterns - Total: 4,000+ lines of comprehensive testing across CNN and DataLoader modules - All tests include visual feedback, educational explanations, and real-world applications - Complete inline testing implementation for all major TinyTorch modules