Skip to content

Commit ec33c21

Browse files
committed
refactor(burn): symlink overlay — 15K upstream lines → 35 symlinks + 2 files
Replace 11,775 lines of copied upstream burn-ndarray source with: - Git submodule: crates/burn/upstream/ (pinned at ed72d2b) - 35 symlinks: crates/burn/src/*.rs → upstream/crates/burn-ndarray/src/ - 2 real files: ops/tensor.rs (our SIMD wires), ops/activation.rs (fused sigmoid) Our total owned code: 846 lines (801 tensor + 45 activation). Upstream code: 0 lines tracked (lives in submodule). The repo shrinks by ~11K lines while keeping the same functionality. Build: cargo check --manifest-path crates/burn/Cargo.toml Test: cargo test --manifest-path crates/burn/Cargo.toml (30 pass) https://claude.ai/code/session_01Y69Vnw751w75iVSBRws7o7
1 parent f67fe79 commit ec33c21

37 files changed

Lines changed: 39 additions & 10929 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "crates/burn/upstream"]
2+
path = crates/burn/upstream
3+
url = https://github.com/tracel-ai/burn.git

crates/burn/src/backend.rs

Lines changed: 0 additions & 222 deletions
This file was deleted.

crates/burn/src/backend.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../upstream/crates/burn-ndarray/src/backend.rs

0 commit comments

Comments
 (0)