refactor: move model-specific operators and fusions into backend extensions (#2253)

This commit is contained in:
leejet authored and GitHub committed 2026-11-01 21:18:37 +08:00
1 parent c6dfa9def1
commit 45a63ac460
68 files changed
+12173 -151

No files matched your search

+9 -6
View File
@@ -8,8 +8,17 @@ $patterns = @(
"src/core/*.cpp"
"src/core/*.h"
"src/core/*.hpp"
"src/core/cpu/*.cpp"
"src/core/cpu/*.h"
"src/core/cuda/*.cu"
"src/core/cuda/*.cuh"
"src/core/cuda/*.h"
"src/core/cuda/sageattention/*.cuh"
"src/core/probe/*.cpp"
"src/core/probe/*.h"
"src/core/vulkan/*.cpp"
"src/core/vulkan/*.h"
"src/core/vulkan/shaders/*.comp"
"src/extensions/*.cpp"
"src/extensions/*.h"
"src/extensions/*.hpp"
@@ -23,8 +32,6 @@ $patterns = @(
"src/model/*/*.hpp"
"src/tokenizers/*.h"
"src/tokenizers/*.cpp"
"src/tokenizers/vocab/*.h"
"src/tokenizers/vocab/*.cpp"
"src/model_io/*.h"
"src/model_io/*.cpp"
"examples/cli/*.cpp"
@@ -46,10 +53,6 @@ try {
foreach ($file in $files) {
$relativePath = $file.FullName.Substring($root.Length).TrimStart('\', '/') -replace '\\', '/'
if ($relativePath -like "vocab*") {
continue
}
Write-Host "formatting '$relativePath'"
# if ($relativePath -ne "stable-diffusion.h") {