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 out of range exception to the static tensor #117

Open
amitsingh19975 opened this issue May 26, 2021 · 0 comments
Open

Add out of range exception to the static tensor #117

amitsingh19975 opened this issue May 26, 2021 · 0 comments
Assignees

Comments

@amitsingh19975
Copy link
Collaborator

The static tensor does not check for out of range error, which makes the read and writes of invalid memory or segmentation fault easier.

auto t = tensor_static<float,extents<1,2,3>>{4.f};
t.at(1,2,3) = 10.f; // no exception triggered.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants