Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[Lane 2 · kotlin-core] NotImplemented stubs — Tensor.sliceCopy {} via CopyMaterializationStrategy

Đang mở Phù hợp với người mới
#1,415 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
88/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
kotlin
Lĩnh vực
machine-learning

Hướng nghiên cứu

Đọc TensorSlicingExtensions.kt và so sánh sliceCopy {} với sliceView {}; sau đó kiểm tra CopyMaterializationStrategy.kt để tìm materializer hiện có. Thêm một bài kiểm thử cho thấy việc thay đổi bản sao không làm thay đổi nguồn, xóa tệp khỏi config/stub-allowlist.txt và chạy ./gradlew :skai-net-lang:skai-net-lang-core:jvmTest checkUnmarkedStubs (dùng đường dẫn dự án được nêu trong issue). Hoàn thành khi bản sao chứa các giá trị đã được cắt, độc lập và bước kiểm tra stub thành công.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

coding good first issue size:s skill:kotlin-core sub-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

  1. Tensor.sliceCopy {} in skainet-lang/skainet-lang-core/src/commonMain/kotlin/sk/ainet/lang/tensor/TensorSlicingExtensions.kt throws NotImplementedError.
  2. Implement it by building the view exactly like sliceView {} in the same file and passing it to CopyMaterializationStrategy.materialize(view) (.../lang/tensor/CopyMaterializationStrategy.kt).
  3. Add a test that mutating the copy does not change the source.
  4. Delete the file's line from config/stub-allowlist.txt; run ./gradlew :skainet-lang:skainet-lang-core:jvmTest checkUnmarkedStubs.

Acceptance

  • sliceCopy returns an independent tensor with the sliced values
  • checkUnmarkedStubs passes 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

Ngôn ngữ chính
Kotlin
Star
52
Fork
15
Merge trung bình
1 ngày 10 giờ
Pull request đã merge (30 ngày)
59

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của SKaiNET-developers/SKaiNET

Tất cả issue của SKaiNET-developers/SKaiNET

Issue tương tự

Thêm issue về Kotlin

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.