import { isPackedTensor as u } from "../utilities/packed.js";
import { c as d, e as i } from "../index-DSGwv2Yx.js";
import "./webgl/dropout16.js";
const s = {
  kernelName: "Dropout16",
  inputsToSave: [],
  gradFunc: (r, o, e) => {
    const { dropout: t, seed: n } = e;
    return { x: () => a(r, t, n) };
  }
};
d(s);
function a(r, o, e) {
  return u(r) ? i().runKernel(
    "Dropout16",
    { x: r },
    {
      dropout: o,
      seed: e ?? Math.random()
    }
  ) : r;
}
export {
  a as dropout16
};
