mirror of
https://github.com/MLSysBook/TinyTorch.git
synced 2026-05-31 18:48:33 -05:00
Fix test function calls in spatial and dataloader modules - move test calls outside __main__ blocks
This commit is contained in:
@@ -821,9 +821,17 @@ def test_module_conv2d_tensor_compatibility():
|
||||
## 🤖 AUTO TESTING
|
||||
"""
|
||||
|
||||
# %%
|
||||
# Run the integration test
|
||||
test_module_conv2d_tensor_compatibility()
|
||||
|
||||
# %% [markdown]
|
||||
"""
|
||||
## 🤖 AUTO TESTING
|
||||
"""
|
||||
|
||||
# %%
|
||||
if __name__ == "__main__":
|
||||
test_module_conv2d_tensor_compatibility()
|
||||
from tito.tools.testing import run_module_tests_auto
|
||||
|
||||
# Automatically discover and run all tests in this module
|
||||
|
||||
@@ -1090,6 +1090,15 @@ def test_module_dataloader_tensor_yield():
|
||||
## 🤖 AUTO TESTING
|
||||
"""
|
||||
|
||||
# %%
|
||||
# Run the integration test
|
||||
test_module_dataloader_tensor_yield()
|
||||
|
||||
# %% [markdown]
|
||||
"""
|
||||
## 🤖 AUTO TESTING
|
||||
"""
|
||||
|
||||
# %%
|
||||
if __name__ == "__main__":
|
||||
from tito.tools.testing import run_module_tests_auto
|
||||
|
||||
Reference in New Issue
Block a user