import { o as a, n as f, v as m, f as y, E as c, C as p } from "./index-DSGwv2Yx.js";
function u(o, s, t) {
  const r = f(o, "x", "clipByValue");
  if (m(s <= t, () => `Error in clip: min (${s}) must be less than or equal to max (${t}).`), s === t)
    return y(r.shape, s, r.dtype);
  const n = { x: r }, e = { clipValueMin: s, clipValueMax: t };
  return c.runKernel(p, n, e);
}
const E = /* @__PURE__ */ a({ clipByValue_: u });
export {
  E as c
};
