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

Added out of range exception for static tensor's #144

Closed

Conversation

shikharvashistha
Copy link
Collaborator

This pulls adds out of range exception for static tensors

Fixes : #117

@github-actions
Copy link

github-actions bot commented Nov 5, 2021

This Pull request Passed all of clang-tidy tests. 👍

@amitsingh19975
Copy link
Collaborator

amitsingh19975 commented Feb 7, 2022

I think you misconstrued the issue. The arity of the function is already checked using static assert and on top of that, you added the same check during runtime. The issue was to fix the out of bound access, for example:

int a[20];
a[0] = 3; // valid access
a[23] = 5; // invalid access or accessing unowned memory, which is the out of bound access.

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.

Add out of range exception to the static tensor
2 participants