Skip to content

AddScalar and ProdScalar with scalar output nodes #21

Open
@oir

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    🚀Enhancement: New feature or request

    Type

    No type

    Projects

    Status

    📋 Backlog

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions