@huggingface/transformers
Advanced tools
Comparing version 3.2.1 to 3.2.2
{ | ||
"name": "@huggingface/transformers", | ||
"version": "3.2.1", | ||
"version": "3.2.2", | ||
"description": "State-of-the-art Machine Learning for the web. Run 🤗 Transformers directly in your browser, with no need for a server!", | ||
@@ -5,0 +5,0 @@ "main": "./src/transformers.js", |
@@ -29,3 +29,3 @@ /** | ||
const VERSION = '3.2.1'; | ||
const VERSION = '3.2.2'; | ||
@@ -32,0 +32,0 @@ // Check if various APIs are available (depends on environment) |
@@ -1,2 +0,2 @@ | ||
import { createInferenceSession } from "../backends/onnx.js"; | ||
import { createInferenceSession, isONNXProxy } from "../backends/onnx.js"; | ||
import { Tensor } from "../utils/tensor.js"; | ||
@@ -20,3 +20,4 @@ | ||
return /** @type {any} */(async (/** @type {Record<string, Tensor>} */ inputs) => { | ||
const ortFeed = Object.fromEntries(Object.entries(inputs).map(([k, v]) => [k, v.ort_tensor])); | ||
const proxied = isONNXProxy(); | ||
const ortFeed = Object.fromEntries(Object.entries(inputs).map(([k, v]) => [k, (proxied ? v.clone() : v).ort_tensor])); | ||
const outputs = await session.run(ortFeed); | ||
@@ -23,0 +24,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
41338643
141003