@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.
@@ -8697,7 +8697,7 @@ __webpack_require__.r(__webpack_exports__);
8697
8697
 
8698
8698
 
8699
8699
 
8700
- const VERSION = '3.2.1';
8700
+ const VERSION = '3.2.2';
8701
8701
 
8702
8702
  // Check if various APIs are available (depends on environment)
8703
8703
  const IS_BROWSER_ENV = typeof window !== "undefined" && typeof window.document !== "undefined";
@@ -23473,7 +23473,8 @@ const wrap = async (session_bytes, session_options, names) => {
23473
23473
  new Uint8Array(session_bytes), session_options,
23474
23474
  );
23475
23475
  return /** @type {any} */(async (/** @type {Record<string, Tensor>} */ inputs) => {
23476
- const ortFeed = Object.fromEntries(Object.entries(inputs).map(([k, v]) => [k, v.ort_tensor]));
23476
+ const proxied = (0,_backends_onnx_js__WEBPACK_IMPORTED_MODULE_0__.isONNXProxy)();
23477
+ const ortFeed = Object.fromEntries(Object.entries(inputs).map(([k, v]) => [k, (proxied ? v.clone() : v).ort_tensor]));
23477
23478
  const outputs = await session.run(ortFeed);
23478
23479
 
23479
23480
  if (Array.isArray(names)) {