mirror of
https://github.com/MLSysBook/TinyTorch.git
synced 2026-06-04 17:50:53 -05:00
🔬 Complete Unit Test terminology standardization
✅ Fixed remaining inconsistencies in: - 01_tensor/tensor_dev.py: Updated all 'Testing X...' → '🔬 Unit Test: X...' - 00_setup/setup_dev.py: Updated all 'Testing X...' → '🔬 Unit Test: X...' 🎯 All TinyTorch modules now use unified format: - 00_setup ✅ - 01_tensor ✅ - 02_activations ✅ - 03_layers ✅ - 04_networks ✅ - 05_cnn ✅ - 06_dataloader ✅ - 07_autograd ✅ - 08_optimizers ✅ 📊 Result: Complete consistency across all 9 modules with professional '🔬 Unit Test: [Component]...' terminology following tensor_dev.py patterns.
This commit is contained in:
@@ -453,7 +453,7 @@ Once you implement both functions above, run this cell to test them:
|
||||
|
||||
# %% nbgrader={"grade": true, "grade_id": "test-personal-info", "locked": true, "points": 25, "schema_version": 3, "solution": false, "task": false}
|
||||
# Test personal information configuration
|
||||
print("Testing personal information...")
|
||||
print("🔬 Unit Test: Personal Information...")
|
||||
|
||||
# Test personal_info function
|
||||
personal = personal_info()
|
||||
@@ -487,7 +487,7 @@ print(f"✅ System: {personal['system_name']}")
|
||||
|
||||
# %% nbgrader={"grade": true, "grade_id": "test-system-info", "locked": true, "points": 25, "schema_version": 3, "solution": false, "task": false}
|
||||
# Test system information queries
|
||||
print("Testing system information...")
|
||||
print("🔬 Unit Test: System Information...")
|
||||
|
||||
# Test system_info function
|
||||
sys_info = system_info()
|
||||
|
||||
@@ -1398,7 +1398,7 @@ Once you implement the Tensor class above, run these cells to test your implemen
|
||||
|
||||
# %% nbgrader={"grade": true, "grade_id": "test-tensor-creation", "locked": true, "points": 25, "schema_version": 3, "solution": false, "task": false}
|
||||
# Test tensor creation and properties
|
||||
print("Testing tensor creation...")
|
||||
print("🔬 Unit Test: Tensor Creation...")
|
||||
|
||||
# Test scalar creation
|
||||
scalar = Tensor(5.0)
|
||||
@@ -1433,7 +1433,7 @@ print(f"✅ Matrix: {matrix}")
|
||||
|
||||
# %% nbgrader={"grade": true, "grade_id": "test-tensor-arithmetic", "locked": true, "points": 25, "schema_version": 3, "solution": false, "task": false}
|
||||
# Test tensor arithmetic operations
|
||||
print("Testing tensor arithmetic...")
|
||||
print("🔬 Unit Test: Tensor Arithmetic...")
|
||||
|
||||
# Test addition
|
||||
a = Tensor([1, 2, 3])
|
||||
@@ -1474,7 +1474,7 @@ print(f"✅ Division: {b} / {a} = {f}")
|
||||
|
||||
# %% nbgrader={"grade": true, "grade_id": "test-tensor-broadcasting", "locked": true, "points": 25, "schema_version": 3, "solution": false, "task": false}
|
||||
# Test tensor broadcasting
|
||||
print("Testing tensor broadcasting...")
|
||||
print("🔬 Unit Test: Tensor Broadcasting...")
|
||||
|
||||
# Test scalar broadcasting
|
||||
matrix = Tensor([[1, 2], [3, 4]])
|
||||
|
||||
Reference in New Issue
Block a user