From 5e3295fdef70e4613b6a9c58b473343ef98f7da8 Mon Sep 17 00:00:00 2001 From: Enrico Galli Date: Wed, 11 Dec 2024 18:27:01 -0800 Subject: [PATCH] More renames from tensor(s) to tensorId(s) --- js/web/lib/wasm/jsep/backend-webnn.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/web/lib/wasm/jsep/backend-webnn.ts b/js/web/lib/wasm/jsep/backend-webnn.ts index f3e961f80cdb5..23e722f1cc7d7 100644 --- a/js/web/lib/wasm/jsep/backend-webnn.ts +++ b/js/web/lib/wasm/jsep/backend-webnn.ts @@ -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; }