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

Computation of the resulting static shape for the general tensor multiplication is not correct #111

Open
bassoy opened this issue Apr 29, 2021 · 0 comments
Assignees
Labels

Comments

@bassoy
Copy link
Collaborator

bassoy commented Apr 29, 2021

Lambda function

auto extents_result = [&e1 = na, &e2 = nb, &a1 = phia, &a2 = phib](){

performs a wrong computation of the resulting static shape invoked in line
// auto C1 = C + prod(A,A,perm_t{1,2}) + 5.0F;

@bassoy bassoy added the bug label Apr 29, 2021
amitsingh19975 added a commit that referenced this issue Apr 29, 2021
This bug occured because the type extent_of_rank_one_array_v was
bool instead of std::size_t, which in turn casting the std::size_t
value into bool. If the size of the array was N, it would cast it
into 1.
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