Skip to content

[RNE Rewrite] feat: support offset and length options in Tensor.copyTo#1287

Open
barhanc wants to merge 1 commit into
rne-rewritefrom
@bh/tensor-copy-to-options
Open

[RNE Rewrite] feat: support offset and length options in Tensor.copyTo#1287
barhanc wants to merge 1 commit into
rne-rewritefrom
@bh/tensor-copy-to-options

Conversation

@barhanc

@barhanc barhanc commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Description

Extends Tensor.copyTo() to support optional offset and length configuration parameters. This allows copying a slice/sub region of a source tensor into a destination tensor, which is useful for tasks such as extracting rows from a batched tensor.

Introduces a breaking change?

  • Yes
  • No

Type of change

  • Bug fix (change which fixes an issue)
  • New feature (change which adds functionality)
  • Documentation update (improves or adds clarity to existing documentation)
  • Other (chores, tests, code style improvements etc.)

Tested on

  • iOS
  • Android

Testing instructions

  • If you want rebuild example apps and check that nothing is broken.

Screenshots

Related issues

Checklist

  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the documentation accordingly
  • My changes generate no new warnings

Additional notes

@barhanc barhanc self-assigned this Jun 26, 2026
@barhanc barhanc added refactoring feature PRs that implement a new feature Core labels Jun 26, 2026
@barhanc barhanc requested a review from msluszniak June 26, 2026 18:39
@barhanc barhanc changed the title feat: support offset and length options in Tensor.copyTo [RNE Rewrite] feat: support offset and length options in Tensor.copyTo Jun 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Core feature PRs that implement a new feature refactoring

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant