add function
Returns x + y element-wise.
Args:
xA variable. Must be one of the following types: Halide_Type_Int or Halide_Type_Float, Halide_Type_Int64, Halide_Type_Uint8.yA variable. Must have the same type asx.
Returns:
- A variable. Has the same type as
x.
Implementation
VARP add(VARP x, VARP y) => VARP.fromPointer(C.mnn_expr_Add(x.ptr, y.ptr));