import { c as t, e as n } from "./index-DSGwv2Yx.js";
import "./ops/cpu/gelu.js";
import "./ops/webgl/gelu.js";
const a = {
  kernelName: "Gelu",
  inputsToSave: ["x"],
  outputsToSave: [],
  gradFunc: (e, r) => {
    const [u] = r;
    return {
      x: () => o(e, u)
    };
  }
};
t(a);
function g(e) {
  return n().runKernel("Gelu", { x: e });
}
function o(e, r) {
  return n().runKernel("GeluGrad", { dy: e, x: r });
}
export {
  a,
  o as d,
  g
};
