ScalarLinearCombination¶
Source: models/common/LinearCombination.py
Calculate linear combination of multiple Scalar tensors as \(u = w_i v_i + b\) (Einstein summation assumed), where \(w_i\) are the weights, and \(v_i\) are the variables to be summed. \(b\) is a constant offset.
Inputs¶
from—input·Scalar· requiredScalar tensors to be summed
Outputs¶
to—output·Scalar· requiredThe sum
Parameters¶
weights—parameter·Scalar· default1Per-input weight parameters. When the list is length 1, the single weight is broadcast across every from-variable.
offset—parameter·Scalar· default0The constant coefficient added to the final summation