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

Invalid strides type for static extents of rank one #116

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

Invalid strides type for static extents of rank one #116

amitsingh19975 opened this issue May 25, 2021 · 0 comments
Assignees
Labels

Comments

@amitsingh19975
Copy link
Collaborator

Right now, the static tensor gets confused about which strides type it should use for rank one extents because of the ambiguity between the extents_static_rank<4> and extents_static<4>. This ambiguity occurs because, behind the scene, they both are the specialization of the extents_core<...>.

When we create a static tensor of rank one, instead of choosing the strides from the extents_static, it chooses the strides from the extents_static_rank.

auto t = tensor_static<float, extents<2>>(); // error: no viable conversion from 'const array<[...], 1>' to 'const array<[...], 2UL aka 2>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants