Skip to content

Wjy dev - #3

Merged
jizhenjun merged 14 commits into
mainfrom
wjy_dev
May 29, 2026
Merged

jizhenjun merged 14 commits into
mainfrom
wjy_dev

Conversation

@k1nsom

@k1nsom k1nsom commented May 27, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

k1nsom and others added 14 commits May 15, 2026 15:56
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
The self-hosted runner has all Python versions pre-installed.
setup-python was stuck downloading Python from GitHub due to slow network.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Generate 5 ONNX models using supported ops (add, mixed_ops, deep_relu,
matmul, maxpool_relu). Benchmark measures parse/optimize/codegen timing
across both RISC-V and LLVM backends. 25 pytest tests integrated with CI.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Add __main__.py entry point so "python -m scratchv" works. Fix all
flake8 errors across the codebase: E501 (line too long), F401 (unused
imports), F841 (unused variables), F541 (f-string without placeholders),
E221 (multiple spaces before operator), E306 (missing blank line),
E122/E127/E128/E131 (indentation), and a duplicate __future__ import.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Resolve all 48 mypy errors across 12 files: add Optional type hints,
assert-based type narrowing for Optional[str|int] values, fix tuple
syntax in annotations, and add missing imports.

Also add end-to-end CNN test suite (27 tests) covering the full
pipeline: ONNX parsing, IR compilation, RISC-V assembly generation,
binary encoding, trace execution, and MSE/MAE verification.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Resolve all mypy errors: add type narrowing with assert isinstance,
fix variable name shadowing (types.py v->attr_v), add Optional type
hints, fix annotation syntax, and add type: ignore for dynamic
attribute access in TinyFive adapter.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Resolve conflicts in 11 files, keeping jzj_dev changes
(lint fixes, mypy type fixes, new ONNX op support, CNN pipeline).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@jizhenjun
jizhenjun self-requested a review May 29, 2026 04:02
@jizhenjun
jizhenjun merged commit 2500673 into main May 29, 2026
37 of 40 checks passed
@jizhenjun
jizhenjun deleted the wjy_dev branch May 29, 2026 04:04
k1nsom added a commit that referenced this pull request Jun 4, 2026
#1+#2 dashboard数据管线: _run()从--json-output路径读取,generate_dashboard_html接收参数
#4 CI CNN benchmark: 模型不存在时自动生成最小CNN onnx,不再静默跳过
#5 tinyfive CI兼容: --scratchv-asm/--llvm-asm CLI参数,文件不存在容错
#6 estimator参数化: estimate_cnn_model接受model_spec dict
#8 LLVM TinyFive内核: 用真实LLVM O3汇编提取的指令序列替代手写
#9 import统一: llvm_cache_compare使用绝对路径导入cache_model

未修(需更大重构):
#3 run_spike_bench field() bug (需dataclass重构,影响力低)
#10 CPU仿真器重复代码 (需提取共享模块)
#7 缓存分析模型 (需trace-driven,实现成本高)

348 tests passed

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants