Skip to content

Cache graph traversal and routing for inference#281

Merged
aobolensk merged 2 commits into
embedded-dev-research:mainfrom
aobolensk:graph-opt
Mar 15, 2026
Merged

Cache graph traversal and routing for inference#281
aobolensk merged 2 commits into
embedded-dev-research:mainfrom
aobolensk:graph-opt

Conversation

@aobolensk

Copy link
Copy Markdown
Member

Precompute DAG traversal, in/out degrees, and per-layer edge routing after graph mutations instead of rebuilding them on every inference.

Replace hash-based branch tracking with dense layer-id indexed state and cached input bindings, preserving the existing tensor flow while removing repeated topology scans from the execution path.

Precompute DAG traversal, in/out degrees, and per-layer edge routing
after graph mutations instead of rebuilding them on every inference.

Replace hash-based branch tracking with dense layer-id indexed state and
cached input bindings, preserving the existing tensor flow while removing
repeated topology scans from the execution path.
@aobolensk aobolensk requested a review from allnes as a code owner March 14, 2026 21:00
@codecov

codecov Bot commented Mar 14, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 82.88288% with 19 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (main@6f356bf). Learn more about missing BASE report.
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
include/graph/graph.hpp 82.40% 4 Missing and 15 partials ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #281   +/-   ##
=======================================
  Coverage        ?   84.77%           
=======================================
  Files           ?       59           
  Lines           ?     3645           
  Branches        ?     2188           
=======================================
  Hits            ?     3090           
  Misses          ?      269           
  Partials        ?      286           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@aobolensk aobolensk merged commit c9dac34 into embedded-dev-research:main Mar 15, 2026
10 checks passed
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.

2 participants