[Lane 2 · kotlin-core] NotImplemented stubs — Tensor.sliceCopy {} via CopyMaterializationStrategy
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 88/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- kotlin
调研方向
阅读 TensorSlicingExtensions.kt,并比较 sliceCopy {} 与 sliceView {};然后检查 CopyMaterializationStrategy.kt,找出现有的物化器。添加一个测试,验证修改副本不会改变源数据;从 config/stub-allowlist.txt 中移除该文件,并运行 ./gradlew :skai-net-lang:skai-net-lang-core:jvmTest checkUnmarkedStubs(使用 issue 中给出的项目路径)。完成标准是副本包含切片后的值、与源数据相互独立,并且 stub 检查通过。
由索引模型根据 Issue 内容生成。
描述
Sub-issue of #1414 ([Feature]: Close the remaining NotImplemented stubs outside the operator surface).
Lane: 2 · Kotlin core
Skill needed: Kotlin. No tensor-storage internals needed — the materializer already exists.
Size: s (a few hours)
Blocked by: nothing
What to do
Tensor.sliceCopy {}inskainet-lang/skainet-lang-core/src/commonMain/kotlin/sk/ainet/lang/tensor/TensorSlicingExtensions.ktthrowsNotImplementedError.- Implement it by building the view exactly like
sliceView {}in the same file and passing it toCopyMaterializationStrategy.materialize(view)(.../lang/tensor/CopyMaterializationStrategy.kt). - Add a test that mutating the copy does not change the source.
- Delete the file's line from
config/stub-allowlist.txt; run./gradlew :skainet-lang:skainet-lang-core:jvmTest checkUnmarkedStubs.
Acceptance
-
sliceCopyreturns an independent tensor with the sliced values -
checkUnmarkedStubspasses without the allowlist entry - Result reported back on the parent issue
Notes
If something here turns out to be wrong or much bigger than the size label, comment on this issue or open a specific bug instead of blocking the parent.
Coverage matrix: docs/modules/ROOT/pages/reference/ops-status-matrix.adoc · How lanes work: Issue taxonomy
- 主要语言
- Kotlin
- 星标
- 52
- 派生
- 15
- 平均合并
- 1 天 10 小时
- 30 天内合并 PR
- 59
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
SKaiNET-developers/SKaiNET 的其他 Issue
-
coding size:s skill:kotlin-core sub-issue
难度 2/5 1-3 小时 新手友好度 76/100
SKaiNET-developers/SKaiNET#1421 ·
维护者通常 1 天内回复
-
coding size:s skill:kotlin-core sub-issue
难度 2/5 1-3 小时 新手友好度 78/100
SKaiNET-developers/SKaiNET#1419 ·
维护者通常 1 天内回复
-
coding good first issue size:s skill:kotlin-core sub-issue
难度 2/5 1-3 小时 新手友好度 82/100
SKaiNET-developers/SKaiNET#1418 ·
维护者通常 1 天内回复
-
coding good first issue size:xs skill:kotlin-core sub-issue
难度 2/5 1 小时以内 新手友好度 82/100
SKaiNET-developers/SKaiNET#1417 ·
维护者通常 1 天内回复
-
coding good first issue size:s skill:kotlin-core sub-issue
难度 2/5 1-3 小时 新手友好度 84/100
SKaiNET-developers/SKaiNET#1416 ·
维护者通常 1 天内回复
查看 SKaiNET-developers/SKaiNET 的全部 Issue
相似的 Issue
-
area/kotlin
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
good first issue help wanted
难度 2/5 1-3 小时 新手友好度 66/100
dafonton77-tech/Cadreenf#11 ·
-
难度 2/5 1-3 小时 新手友好度 80/100
Hy4ri/hermes-mobile#1647 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 66/100
supabase-community/supabase-kt#1429 ·
维护者通常 5 天内回复