Function marian::affine¶
Defined in File expression_operators.cpp
Function Documentation¶
-
Expr
marian
::
affine
(Expr a, Expr b, Expr bias, bool transA = false, bool transB = false, float scalar = 1.f)¶ Performs an affine transformation.
Computes \( C \leftarrow \alpha \operatorname{op}(A) \cdot \operatorname{op}(B) + C\), where \( \operatorname{op}(A) = A \) if
transA
isfalse
, and \( \operatorname{op}(A) = A^\top \) iftrue
. The \(\alpha\) parameter is set byscalar
.