用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/hiyenwong/ai_collection --skill snn-mlir-neuromorphic-compilation命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | snn-mlir-neuromorphic-compilation |
| description | SNN-MLIR编译方法论 — MLIR方言用于将神经形态SNN从NIR编译到裸机C代码。支持浮点和量化数据,自动重缩放操作,生成依赖-free C11代码。 |
| platforms | ["linux","macos","windows"] |
| tags | ["snn","neuromorphic","compiler","mlir","nir","quantization"] |
论文: SNN-MLIR: An MLIR Dialect for Compiling Neuromorphic SNNs from NIR to Bare-Metal C (arXiv:2606.09213v1) 作者: Alejandro García Gener, Alvaro Rollón de Pinedo 发布: 2026-06-08
NIR文件 → Python前端 → SNN-MLIR IR → Lowering Pass → linalg/arith → C11代码 → CPU/嵌入式
# 从NIR文件生成MLIR IR
import nir
import snn_mlir
# 加载NIR模型
model = nir.read("model.nir")
# 自动插入重缩放操作
mlir_ir = snn_mlir.from_nir(model, quantize=True)
# 编译到C代码
c_code = snn_mlir.compile(mlir_ir, target="c11")
Apache-2.0 license with LLVM-exception GitHub: https://github.com/[repository]
关键词: snn-mlir, mlir dialect, neuromorphic compilation, nir, quantization, embedded deployment, c11 code generation