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

Add TensorBase::{as_cow, into_cow} #153

Merged
merged 1 commit into from
May 5, 2024
Merged

Add TensorBase::{as_cow, into_cow} #153

merged 1 commit into from
May 5, 2024

Conversation

robertknight
Copy link
Owner

This is useful for code which needs to conditionally copy or create a tensor, and then get the results of the copying and non-copying code paths into the same type. See robertknight/ocrs#57 for a downstream solution that can be replaced by this.

This is useful for code which needs to conditionally copy or create a tensor,
and then get the results of the copying and non-copying code paths into the same
type. See robertknight/ocrs#57 for a downstream solution
that can be replaced by this.
@robertknight robertknight merged commit 7e75b37 into main May 5, 2024
2 checks passed
@robertknight robertknight deleted the as-cow branch May 5, 2024 17:23
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