feat: vol8 tiny_ml Stage 2 Dense 层 + 文档 + cache 在线 demo - #127
Merged
Conversation
代码(stage2 工程 code/volumn_codes/vol8-labs/ai/tiny_ml/stage2/): - Dense<In,Out> 用 std::span 视图指向外部权重(实例从 392KB 压到 16B) - forward 类内 inline 做 matvec,形状编译期锁死无需 std::expected - 12 个测试全绿(tensor/smoke 6 + dense 5 + smoke 1) 文档(documents/vol8-domains/ai/tiny_ml/stage2/): - 01 Dense 在算什么(y=W·x+b 拆成 Out 个加权和) - 02 权重 [Out,In] 的 cache 账 + PyTorch 对齐(承重篇) - 03 实现主文档(span 视图 + stage2→stage5 接口契约 + 常见坑) - index 导航 + tiny_ml/index 更新 在线 demo: - code/examples/vol8/cache_layout.cpp(行序 vs 列序 cache 实测,OnlineCompilerDemo 嵌入 02) README 翻译覆盖率由 update-translation-coverage hook 自动更新。
Member
Author
|
周末发了烧,TAMCPP就没更新,今天继续~ |
身体要紧身体要紧 |
Member
Author
感谢大佬关心QAQ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
代码(stage2 工程 code/volumn_codes/vol8-labs/ai/tiny_ml/stage2/):
文档(documents/vol8-domains/ai/tiny_ml/stage2/):
在线 demo:
README 翻译覆盖率由 update-translation-coverage hook 自动更新。