Skip to content

Commit 9ab974c

Browse files
committed
fixed the markdown render in AI lesson 9
1 parent c8e677c commit 9ab974c

1 file changed

Lines changed: 15 additions & 8 deletions

File tree

Artificial-Intelligence/AI-Question09.md

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,21 @@ High-frequency sensor streams generate massive data volumes with strict latency
2121
**Traditional vs Span/Memory Pipeline**
2222
```mermaid
2323
flowchart TD
24-
A[Sensor Hardware Buffer] --> B[Traditional: Copy to new float[]]
25-
B --> C[GC Pressure + Allocations]
26-
C --> D[Preprocessing]
27-
D --> E[ONNX Tensor]
28-
29-
F[Sensor Hardware Buffer] --> G[Span<T> / Memory<T> View]
30-
G --> H[Zero-Copy Preprocess + SIMD]
31-
H --> I[Direct Tensor Creation]
24+
subgraph Traditional ["Traditional Approach"]
25+
A[Sensor Hardware Buffer]
26+
A --> B["Copy to new float[]"]
27+
B --> C["GC Pressure + Allocations"]
28+
C --> D[Preprocessing]
29+
D --> E[ONNX Tensor]
30+
end
31+
32+
subgraph Optimized ["Optimized Zero-Copy Approach"]
33+
F[Sensor Hardware Buffer]
34+
F --> G["Span T / Memory T View"]
35+
G --> H["Zero-Copy Preprocess + SIMD"]
36+
H --> I["Direct Tensor Creation"]
37+
end
38+
3239
style G fill:#90EE90
3340
style H fill:#90EE90
3441
```

0 commit comments

Comments
 (0)