Skip to content

Commit

Permalink
Merge branch 'v3' into @huggingface/transformers
Browse files Browse the repository at this point in the history
  • Loading branch information
xenova committed Aug 7, 2024
2 parents 86b9b62 + 222b94e commit b326cc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/models.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,8 @@ async function getSession(pretrained_model_name_or_path, fileName, options) {
const shapes = getKeyValueShapes(options.config, {
prefix: 'present',
});
if (Object.keys(shapes).length > 0) {
// Only set preferredOutputLocation if shapes are present
if (Object.keys(shapes).length > 0 && !isONNXProxy()) {
// Only set preferredOutputLocation if shapes are present and we aren't proxying ONNX
const preferredOutputLocation = {};
for (const key in shapes) {
preferredOutputLocation[key] = 'gpu-buffer';
Expand Down

0 comments on commit b326cc9

Please sign in to comment.