import { a as e } from "../../index-DSGwv2Yx.js";
import { s as m } from "../../softmax-BLGJqdwx.js";
function n(t) {
  const { inputs: s, attrs: a } = t, { logits: o } = s, { dim: i, dropoutRate: r } = a;
  if (!o)
    throw new Error("Error in softmax: input logits is null");
  return r !== void 0 && r > 0 && console.warn("Dropout in fusedSoftmax not implemented for CPU backend, skipping dropout."), m(o, i);
}
const f = {
  kernelName: "FusedSoftmax",
  backendName: "cpu",
  kernelFunc: n
};
e(f);
const u = {
  kernelName: "FusedSoftmax",
  backendName: "tensorflow",
  kernelFunc: n
};
e(u);
const l = {
  kernelName: "FusedSoftmax",
  backendName: "webgpu",
  kernelFunc: n
};
e(l);
export {
  n as softmaxCPU
};
