Skip to content

test(tinytorch): regression coverage for systems/perf module gaps - #4

Merged
Shashank-Tripathi-07 merged 1 commit into
devfrom
mcdc-04-systems-perf
Aug 15, 2026
Merged

test(tinytorch): regression coverage for systems/perf module gaps#4
Shashank-Tripathi-07 merged 1 commit into
devfrom
mcdc-04-systems-perf

Conversation

@Shashank-Tripathi-07

@Shashank-Tripathi-07 Shashank-Tripathi-07 commented Aug 14, 2026

Copy link
Copy Markdown
Owner

Summary

Adds regression tests for systems/perf module gaps found by an MC/DC audit: profiling, quantization, acceleration, and memoization. Independent of the other companion PRs in this series (#1, #2, #3, #5), each covers a different module group and can be reviewed/merged in any order.

Covered gaps:

  • count_flops's dispatcher branch for layers-bearing non-Sequential objects
  • quantize_model's two unsupported-input error paths
  • vectorized_matmul/tiled_matmul's dimensionality and shape-mismatch guards, the audit's highest-priority finding: TinyTorch's core accelerated matmul had zero coverage on its input validation
  • disable_kv_cache's early-return/warning branch

Pure regression tests, no source or package files touched.

Test plan

  • pytest tests/14_profiling tests/15_quantization tests/17_acceleration tests/18_memoization -q passes locally, including all new cases
  • Verified each new test's target behavior directly against a clean origin/dev checkout before adding it

Covers profiling, quantization, acceleration, and memoization: count_flops'
dispatcher branch for layers-bearing non-Sequential objects, quantize_model's
two unsupported-input error paths, vectorized_matmul/tiled_matmul's
dimensionality and shape-mismatch guards (the audit's highest-priority
finding, TinyTorch's core accelerated matmul had zero coverage on its
input validation), and disable_kv_cache's early-return/warning branch.

Pure regression tests, no source or package files touched. Each test
was verified against a clean origin/dev checkout before being added.
@github-actions

Copy link
Copy Markdown

Thanks @Shashank-Tripathi-07! 🎉

@Shashank-Tripathi-07 was already credited in tinytorch for: code, test.

The contributor tables are now handled directly by this workflow; no follow-up command is needed.

@Shashank-Tripathi-07
Shashank-Tripathi-07 deleted the mcdc-04-systems-perf branch August 19, 2026 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant