Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infer layout for slice_copy based on layout and range #366

Merged
merged 1 commit into from
Sep 20, 2024

Conversation

robertknight
Copy link
Owner

Update TensorBase::slice_copy to match slice_with by inferring the layout of the result based on the current tensor's layout and the slice range. Unlike slice_with a breaking change was made directly to the original API as it is much less widely used than slice.

Update `TensorBase::slice_copy` to match `slice_with` by inferring the layout of
the result based on the current tensor's layout and the slice range. Unlike
`slice_with` a breaking change was made directly to the original API as it
is much less widely used than `slice`.
@robertknight robertknight merged commit 8af2ddf into main Sep 20, 2024
2 checks passed
@robertknight robertknight deleted the slice-copy-inferred-type branch September 20, 2024 06:38
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.

1 participant