<?xml version="1.0" encoding="UTF-8"?><oembed><type>video</type><version>1.0</version><html>&lt;iframe src=&quot;https://www.loom.com/embed/02b29fe331c1482abf01da402d39d22f&quot; frameborder=&quot;0&quot; width=&quot;1226&quot; height=&quot;919&quot; webkitallowfullscreen mozallowfullscreen allowfullscreen&gt;&lt;/iframe&gt;</html><height>919</height><width>1226</width><provider_name>Loom</provider_name><provider_url>https://www.loom.com</provider_url><thumbnail_height>919</thumbnail_height><thumbnail_width>1226</thumbnail_width><thumbnail_url>https://cdn.loom.com/sessions/thumbnails/02b29fe331c1482abf01da402d39d22f-d5396c97a0b5b330.gif</thumbnail_url><duration>95.694</duration><title>Agentic Code Migration from C to PyTorch</title><description>This Loom explains a graph based agentic engine for migrating institutional quantitative code bases from C to PyTorch without months of manual engineering. It argues that naive LLM translation fails due to hallucinations, broken class hierarchies, and poor loop vectorization. The agent deterministically parses source code into a dependency graph where each function is an isolated node with mathematical primitives resolved before any generation, then replaces C loops with tensorized PyTorch broadcast operations, autograde compatible computational graphs, and synthesized unit tests. It immediately executes each migrated function against the C Oracle baseline for numerical parity and toggles cloud execution for local graphs to find parallel compilation.</description></oembed>