diff --git a/modules/source/02_tensor/tensor_dev.py b/modules/source/02_tensor/tensor_dev.py index b518ab01..2c318708 100644 --- a/modules/source/02_tensor/tensor_dev.py +++ b/modules/source/02_tensor/tensor_dev.py @@ -815,27 +815,6 @@ Congratulations! You've successfully implemented the core Tensor class for TinyT **Ready for the next challenge?** Let's add the mathematical functions that make neural networks powerful! """ -# %% [markdown] -""" -## 🧪 Module Testing - -Time to test your implementation! This section uses TinyTorch's standardized testing framework to ensure your implementation works correctly. - -**This testing section is locked** - it provides consistent feedback across all modules and cannot be modified. -""" - -# %% nbgrader={"grade": false, "grade_id": "standardized-testing", "locked": true, "schema_version": 3, "solution": false, "task": false} -# ============================================================================= -# STANDARDIZED MODULE TESTING - DO NOT MODIFY -# This cell is locked to ensure consistent testing across all TinyTorch modules -# ============================================================================= - -if __name__ == "__main__": - from tito.tools.testing import run_module_tests_auto - - # Automatically discover and run all tests in this module - success = run_module_tests_auto("Tensor") - # %% def test_unit_tensor_creation(): """Comprehensive test of tensor creation with all data types and shapes.""" @@ -903,6 +882,27 @@ def test_unit_tensor_arithmetic(): assert np.allclose(f.data, expected) print("✅ Tensor arithmetic tests passed!") +# %% [markdown] +""" +## 🧪 Module Testing + +Time to test your implementation! This section uses TinyTorch's standardized testing framework to ensure your implementation works correctly. + +**This testing section is locked** - it provides consistent feedback across all modules and cannot be modified. +""" + +# %% nbgrader={"grade": false, "grade_id": "standardized-testing", "locked": true, "schema_version": 3, "solution": false, "task": false} +# ============================================================================= +# STANDARDIZED MODULE TESTING - DO NOT MODIFY +# This cell is locked to ensure consistent testing across all TinyTorch modules +# ============================================================================= + +if __name__ == "__main__": + from tito.tools.testing import run_module_tests_auto + + # Automatically discover and run all tests in this module + success = run_module_tests_auto("Tensor") + # %% [markdown] """ ## 🎯 Module Summary: Tensor Foundation Mastery!