Skip to content

AddScalar and ProdScalar with scalar output nodes #21

Description

@oir

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    🚀Enhancement: New feature or request

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions