Skip to content

Commit

Permalink
More renames from tensor(s) to tensorId(s)
Browse files Browse the repository at this point in the history
  • Loading branch information
egalli committed Dec 12, 2024
1 parent be01b60 commit 5e3295f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/web/lib/wasm/jsep/backend-webnn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,11 +229,11 @@ export class WebNNBackend {
}
const tensorId = this.tensorManager.reserveTensorId();
await this.tensorManager.ensureTensor(tensorId, dataType, shape, false);
const tensors = this.temporarySessionTensorIds.get(this.currentSessionId);
if (!tensors) {
const tensorIds = this.temporarySessionTensorIds.get(this.currentSessionId);
if (!tensorIds) {
this.temporarySessionTensorIds.set(this.currentSessionId, [tensorId]);
} else {
tensors.push(tensorId);
tensorIds.push(tensorId);
}
return tensorId;
}
Expand Down

0 comments on commit 5e3295f

Please sign in to comment.