sum function
Compute the element-wise sum
Args:
- x: A variable. Must be one of the following types: Halide_Type_Float
- y: A variable. Must be one of the following types: Halide_Type_Float
- coeff: blob-wise coefficients
Returns:
- The sum variable.
Implementation
VARP sum(VARP x, VARP y, {List<double> coeff = const []}) {
final (p, size) = coeff.toNativeArrayF32();
final rval = VARP.fromPointer(C.mnn_expr_Sum(x.ptr, y.ptr, p, size));
calloc.free(p);
return rval;
}