scatterElements function

VARP scatterElements(
  1. VARP data,
  2. VARP indices,
  3. VARP updates, {
  4. VARP? axis,
  5. int reduction = -1,
})

Implementation

VARP scatterElements(VARP data, VARP indices, VARP updates, {VARP? axis, int reduction = -1}) =>
    switch (axis) {
      null => VARP.fromPointer(C.mnn_expr_ScatterElements(data.ptr, indices.ptr, updates.ptr, reduction)),
      VARP() => VARP.fromPointer(
        C.mnn_expr_ScatterElements_1(data.ptr, indices.ptr, updates.ptr, axis.ptr, reduction),
      ),
    };