import { N as h, aj as d, v as c, R as m } from "./index-DSGwv2Yx.js";
function i(n) {
  const { inputs: p, attrs: o } = n, { x: e } = p, { shape: r } = o, a = h(e.shape), s = d(r, a), t = h(s);
  return c(a === t, () => `The new shape (${s}) has ${t} elements and the old shape (${e.shape}) has ${a} elements. The new shape and old shape must have the same number of elements.`), n.backend.incRef(e.dataId), { dataId: e.dataId, shape: s, dtype: e.dtype };
}
const u = {
  kernelName: m,
  backendName: "webgpu",
  kernelFunc: i
};
export {
  u as a,
  i as r
};
