import { o as e, w as c, v as n, E as k, P as i } from "./index-DSGwv2Yx.js";
function u(r, t = 0) {
  const s = c(r, "tensors", "stack", "string_or_numeric");
  n(s.length >= 1, () => "Pass at least one tensor to tf.stack"), s.length > 0 && n(t <= s[0].rank, () => "Axis must be <= rank of the tensor");
  const o = s, a = { axis: t };
  return k.runKernel(i, o, a);
}
const l = /* @__PURE__ */ e({ stack_: u });
export {
  l as s
};
