import { e as t } from "../index-DSGwv2Yx.js";
import { isPackedTensor as s } from "../utilities/packed.js";
import { s as n } from "../sum-D39FeU5h.js";
function p(r, o, e = !1) {
  if (!s(r))
    return n(r, o, e);
  if (e)
    throw new Error("sum16 with keepDims=true not supported for packed tensors");
  return t().runKernel("Sum16", { x: r }, { axis: o ?? -1, keepDims: e });
}
export {
  p as sum16
};
