test: add unit tests for configs, torch layers, utils, and base utils

Apply changes from PR #394 by @cj-wong:
- tests/__init__.py: package marker
- tests/test_base_utils.py: strip_leading_nans + linear_interpolation tests
- tests/test_configs.py: frozen dataclass, defaults, replace, equality tests
- tests/test_torch_layers.py: ResidualBlock, RMSNorm, RandomFourierFeatures
- tests/test_torch_utils.py: update_running_stats, revin, DecodeCache tests
This commit is contained in:
darkpowerxo
2026-04-08 14:13:37 -04:00
parent bc03b77e9e
commit c10494a4c5
5 changed files with 963 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
# Tests for TimesFM.