Skip to content

AddScalar and ProdScalar with scalar output nodes #21

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

Open
oir opened this issue Oct 24, 2022 · 0 comments
Open

AddScalar and ProdScalar with scalar output nodes #21

oir opened this issue Oct 24, 2022 · 0 comments
Labels
🚀 Enhancement: New feature or request
Milestone

Comments

@oir
Copy link
Contributor

oir commented Oct 24, 2022

Currently scalar operators expect actual scalars (e.g. Reals). However they should allow for size one (or maybe strictly rank-zero) tensor nodes coming from another computation.

E.g:

NodePtr<> x, y;
auto z = Sum(x) * y;

Here Sum(x) is a size one tensor (possibly rank 0) and it is meaningful to use it as a multiplication operand, but there is no such mechanism.

@oir oir added the 🚀 Enhancement: New feature or request label Oct 24, 2022
@oir oir added this to the v0.1 milestone Oct 24, 2022
@oir oir added this to Botanicals Oct 24, 2022
@oir oir moved this to 📋 Backlog in Botanicals Oct 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚀 Enhancement: New feature or request
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant