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

Exception raised on the construction of the tensor from the tensor_expression #118

Open
amitsingh19975 opened this issue May 26, 2021 · 0 comments · May be fixed by #160
Open

Exception raised on the construction of the tensor from the tensor_expression #118

amitsingh19975 opened this issue May 26, 2021 · 0 comments · May be fixed by #160
Assignees
Labels

Comments

@amitsingh19975
Copy link
Collaborator

amitsingh19975 commented May 26, 2021

When constructing expression such as A + 3 * B and constructing a tensor out of the expression, the exception is raised, which should not happen.

    using tensor_t = tensor_dynamic<float>;
    auto const e = extents<>{3,2};

    auto const a = tensor_t(e, 1.f);

    auto const three = 3.f;
    auto const expr = a + three * a;
    auto const t = tensor_t(expr); // exception
@amitsingh19975 amitsingh19975 changed the title Exception raised on the construction of the tensor_expression Exception raised on the construction of the tensor from the tensor_expression May 26, 2021
@amitsingh19975 amitsingh19975 changed the title Exception raised on the construction of the tensor from the tensor_expression Exception raised on the construction of the tensor from the tensor_expression May 26, 2021
@amitsingh19975 amitsingh19975 self-assigned this Feb 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants