Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1,720 changes: 917 additions & 803 deletions Cargo.lock

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,15 @@ debug = false
lto = "fat"
strip = true
panic = "abort"

# Patched tract-linalg with the WASM SIMD kernel kit:
# wasm_f32_4x4 (existing) + wasm_f32_4x1 / 8x1 / 16x1 (new GEMV variants)
# + wasm_f32_8x8 (new MM variant) + per-M dispatcher in Ops::mmv_f32.
# Cumulative impact on DFN3: RTF 0.1290 -> 0.0516 (-60%, 2.5x faster), bit-identical audio.
# Source: vendor/tract-linalg-0.22.1 (self-contained crate, version-matched 0.22.1).
# Lineage: cherry-picked from czoli1976/tract@kernel-kit-on-v0.22.1 — kernel kit
# from sonos/tract#2164 (merged) applied onto sonos/tract v0.22.1 tag.
[patch.crates-io]
tract-linalg = { path = "vendor/tract-linalg-0.22.1" }


8 changes: 4 additions & 4 deletions libDF/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,10 @@ claxon = { version = "^0.4", optional = true }
env_logger = { version = "0.11", optional = true }
clap = { version = "4.0", optional = true, features = ["derive"] }
rust-ini = { version = "^0.21", optional = true }
tract-core = { version = "^0.21.4", optional = true }
tract-onnx = { version = "^0.21.4", optional = true }
tract-pulse = { version = "^0.21.4", optional = true }
tract-hir = { version = "^0.21.4", optional = true }
tract-core = { version = "=0.22.1", optional = true }
tract-onnx = { version = "=0.22.1", optional = true }
tract-pulse = { version = "=0.22.1", optional = true }
tract-hir = { version = "=0.22.1", optional = true }
flate2 = { version = "1.0.24", optional = true }
tar = { version = "0.4.38", optional = true }
wasm-bindgen = { version = "0.2.87", optional = true }
Expand Down
2 changes: 1 addition & 1 deletion libDF/src/bin/enhance_wav.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::{path::PathBuf, process::exit, time::Instant};
use anyhow::Result;
use clap::{Parser, ValueHint};
use df::{tract::*, transforms::resample, wav_utils::*};
use ndarray::{prelude::*, Axis};
use tract_core::ndarray::{self, prelude::*, Axis};

#[cfg(all(
not(windows),
Expand Down
Loading