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

Only allow View() on contigious tensors. #215

Merged
merged 1 commit into from
Jul 15, 2022
Merged

Only allow View() on contigious tensors. #215

merged 1 commit into from
Jul 15, 2022

Conversation

luitjens
Copy link
Collaborator

There are very subtle bugs that occur when someone reshapes a tensor
that is not compact. Thus we should throw an error.

There are very subtle bugs that occur when someone reshapes a tensor
that is not compact.  Thus we should throw an error.
include/matx_tensor.h Show resolved Hide resolved
@luitjens luitjens merged commit 3a3f45f into main Jul 15, 2022
@luitjens luitjens deleted the view_error branch August 16, 2022 15:02
cliffburdick pushed a commit that referenced this pull request Dec 8, 2023
There are very subtle bugs that occur when someone reshapes a tensor
that is not compact.  Thus we should throw an error.

Co-authored-by: jluitjens <jluitjens@nvidia.com>
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.

2 participants