opBinaryFunc

op(alpha1 * a, alpha2 * b)

this function is tested under grain.autograd.Variable.opBinary

opBinaryFunc
(
string op
T
size_t dim
alias Storage
)
(
Variable!(T, dim, Storage) a
,
Variable!(T, dim, Storage) b
,
T alpha1 = 1
,
T alpha2 = 1
)

Meta