@huggingface/transformers 3.2.1 → 3.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5902,7 +5902,7 @@ __webpack_require__.r(__webpack_exports__);
5902
5902
 
5903
5903
 
5904
5904
 
5905
- const VERSION = '3.2.1';
5905
+ const VERSION = '3.2.2';
5906
5906
 
5907
5907
  // Check if various APIs are available (depends on environment)
5908
5908
  const IS_BROWSER_ENV = typeof window !== "undefined" && typeof window.document !== "undefined";
@@ -20678,7 +20678,8 @@ const wrap = async (session_bytes, session_options, names) => {
20678
20678
  new Uint8Array(session_bytes), session_options,
20679
20679
  );
20680
20680
  return /** @type {any} */(async (/** @type {Record<string, Tensor>} */ inputs) => {
20681
- const ortFeed = Object.fromEntries(Object.entries(inputs).map(([k, v]) => [k, v.ort_tensor]));
20681
+ const proxied = (0,_backends_onnx_js__WEBPACK_IMPORTED_MODULE_0__.isONNXProxy)();
20682
+ const ortFeed = Object.fromEntries(Object.entries(inputs).map(([k, v]) => [k, (proxied ? v.clone() : v).ort_tensor]));
20682
20683
  const outputs = await session.run(ortFeed);
20683
20684
 
20684
20685
  if (Array.isArray(names)) {